I understand that sys.path refers to
- OS paths that have your system libraries. I take it that these refer to
/libin *nix orWindowson Windows. - current directory python started from - I take it if Python is started from
C:\Python, this would be the current path - environmental variable $PYTHONPATH or %PYTHONPATH% - This refers to the path where I can call the Python binary from the command line
- you can add paths at runtime - Which I understand to be when I run IDLE
I am able to add paths by running the command sys.path.append however when I run the command sys.path.remove to 'delete' the path I appended, I am unable to do so. Is there a way to do so without having to close IDLE each time?
I am running Python 2.7 on Windows 7 as well as Ubuntu