PYTHONPATH not working on Windows XP (?)

Sergio Correia sergio.correia at gmail.com
Mon Sep 3 03:57:57 EDT 2007


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 <oliviermigeon at gmail.com> wrote:
> 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 be "/" or "\\",
> never "\".
>
> Regards,
>
>  Olivier
>
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>



More information about the Python-list mailing list