I know I can use
import os
os.environ['PATH'] += os.pathsep + "C:\\Users\\john\\myprog\\bin"
to add this folder to the (python representation of the) PATH. However, how can I remove an entry from the PATH?
Using :
os.environ.pop('C:\\Users\\john\\myprog\\bin')
does not work here. Any ideas? Thanks!