Set an environment variable
Grant Edwards
grante at visi.com
Thu Oct 20 10:30:42 EDT 2005
On 2005-10-20, the_crazy88 <python at gentoolinux.demon.nl> wrote:
> os.system("export PYTHONPATH = %s" %("your_pythonpath"))
No, that won't work.
That will set the environment variable in the shell spawned by
the os.system command. That shell will then immediately exit,
leaving the caller's environment unchanged.
--
Grant Edwards grante Yow! Are you mentally here
at at Pizza Hut??
visi.com
More information about the Python-list
mailing list