I need some help with appending a file path to "PATH" variable in Windows 10 from Jupyter Notebook (Python 3.6). I need to do it at run time from notebook because my user account is doesn't have admin rights.
Background:
I want to use GrphViz 2.8 library. For this library to work from Jupyter notebook, the location of dot.exe file i.e. C:\Program Files (x86)\Graphviz2.38\bin\dot.exe
needs to be added to PATH environment variable.
I have seen that os.getenv('Path')
command will get me the value of this Path variable but I couldn't find the equivalent set method to append my entry to this Path variable.
I have also seen this post which suggests using kernal.json
But I didn't understand how to update the PATH variable.
Any example how to achieve this will be very much appreciated.
If it is not possible, then can you please suggest an alternative way of using GrpahViz without updating "Path" variable.
PS I can't use Online dot-file to SVG/PNG converters because I am using a package which requires GrpahViz to be available locally.