how to change sys.path?

John Salerno johnjsal at NOSPAMgmail.com
Tue May 23 17:49:21 CEST 2006


Ju Hui wrote:
> yes, I mean I want change the sys.path value and save it for next
> using.
> I can change the value of sys.path, but I can't "save" it permanently.
> There is no python_path environment on my pc, what the relationship
> between it and the sys.path?
> 

In Windows, at least, you can create the PYTHONPATH variable and assign 
to it the paths of the directories you want Python to check for when 
running a script.



More information about the Python-list mailing list