Saving changes to path
Billy Mays
81282ed9a88799d21e77957df2d84bd6514d9af6 at myhashismyemail.com
Tue Jul 19 14:31:12 EDT 2011
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
More information about the Python-list
mailing list