Where does sys.path get initialized

Scott David Daniels Scott.Daniels at Acm.Org
Mon Sep 22 10:07:01 EDT 2003


mmoum[no-spam-please] wrote:
> Hi,
> 
> Can anyone tell me where sys.path gets initialized?  I know that I can 
> import sys and then execute sys.path.append(pathname), but I'd prefer 
> not to have to do that everytime I use PythonWin or Idle.  I'm using 
> Python on both Linux and Windows XP, and I suspect the process is 
> different for each.
> 
> Thanks in advance,
> Mike
> 
Consider placing a ".pth" file in your python directory.
This should solve your problems in an easily reversible way.






More information about the Python-list mailing list