Python: Platform independent way to modify PATH environment variable

Viewed 92420

Is there a way to modify the PATH environment variable in a platform independent way using python?

Something similar to os.path.join()?

4 Answers

You could refresh it like this

os.environ["PATH"] = os.environ["PATH"]
Related