Re: PYTHONPATH not working on Windows XP (?)

2007-09-03 Thread olivier
Hi, Any suggestions for adding my path to sys.path permanently? You can write a file in Lib/site-packages with a 'pth' extension (the name itself doesn't matter) containing the path you want to add. Example: MyCustomLib.pth: C:/docs/utils And be careful with path separator on win32. It should

Re: PYTHONPATH not working on Windows XP (?)

2007-09-03 Thread Sergio Correia
Thanks! It worked straightforward, and it's easier than messing with the enviromental variables or the registry. BTW, I'm still wondering how did Autohotkey got included in sys.path (there are no other .pht files on my PC) Regards, Sergio On 9/3/07, olivier [EMAIL PROTECTED] wrote: Hi, Any

PYTHONPATH not working on Windows XP (?)

2007-09-02 Thread Sergio Correia
Hi, I'm trying to add a personal folder to the path used by python in searching for packages and modules. This folder, C:\docs\utils , has some packages not yet ready for site-packages. First, I tried sys.path.append(C:\docs\utils) BUT this only lasts for the current python session. Then, I