.pth configuration method not working
Mark
creechm at gmail.com
Sat Feb 3 18:03:03 EST 2007
Sys.path doesn't recognize any directories that I add using the .pth
method. I'm running Windows XP if that helps diagnose the problem.
Here is what I've done:
The original output of sys.path:
['C:\\Python25\\Lib\\idlelib', 'C:\\WINDOWS\\system32\\python25.zip',
'C:\\Python25\\DLLs', 'C:\\Python25\\lib', 'C:\\Python25\\lib\\plat-
win', 'C:\\Python25\\lib\\lib-tk', 'C:\\Python25', 'C:\\Python25\\lib\
\site-packages']
I've added a file "MyPaths.pth" to "C:\Python25\". MyPaths.pth
contains one line that reads: C:\Python25\MyModules. For some reason
sys.path won't ever recognize that C:\Python25\MyModules exists. This
is very frustrating because I know that this method is supposed to
work. ANY help would be appreciated.
Thanks in advance,
Mark
More information about the Python-list
mailing list