On 07/19/2011 02:24 PM, Chess Club wrote:
Hello,
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
it?
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.
--
Bill
--
http://mail.python.org/mailman/listinfo/python-list