PYTHONPATH not working on Windows XP (?)

olivier oliviermigeon at gmail.com
Mon Sep 3 03:32:22 EDT 2007


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





More information about the Python-list mailing list