Saving changes to path
81282ed9a88799d21e77957df2d84bd6514d9af6 at myhashismyemail.com
Tue Jul 19 20:31:12 CEST 2011
On 07/19/2011 02:24 PM, Chess Club wrote:
> I used sys.path.append() to add to the path directory, but the changes
> made are not saved when I exit the compiler. Is there a way to save
> Thank you.
Since python is running in a child process, it only affects its own
environment variables. I'm not sure that a process can change its
parents' environment variables in a platform independent way.
I also tried:
$ python -c 'import os; os.system("export FOO=1")'
$ echo $FOO
but it doesn't seem to work.
More information about the Python-list