Question on Python path

newgene newgene at bigfoot.com
Mon Feb 25 14:12:21 EST 2002


Put your directory into "PYTHONPATH" environment variable.
or
import sys
sys.path.append("your directory")


CL

Gon?lo Rodrigues <op73418 at mail.telepac.pt> wrote in message news:<3qnk7ug977hk4peorufobtlo38nh8j9v87 at 4ax.com>...
> I have put all my own modules in a subdirectory of site-packages. How
> can I instruct Python (I'm using Python 2.2 on win2k) to also look up
> this directory when a
> 
> import <whatever>
> 
> is found?
> 
> My Thanks,
> Gonçalo Rodrigues
> 
> P.S: I have edited the registry directly by adding a User key in the
> Pythonpath folder. Needless to say I do NOT want to mess directly with
> the registry.



More information about the Python-list mailing list