How do I edit a PythonWin path to import custom built modules???

Fredrik Lundh fredrik at pythonware.com
Thu Dec 14 03:27:20 EST 2006


BartlebyScrivener wrote:

>> what do you get if you do:
> 
>>> python -S
>> ...
>>>> import sys
>>>> sys.path
> 
> ['', 'C:\\WINDOWS\\system32\\python24.zip', 'd:\\python',
> 'C:\\Python24\\DLLs', 'C:\\Python24\\lib',
> 'C:\\Python24\\lib\\plat-win', 'C:\\Python24\\lib\\lib-tk', 'C:\
> \Python24']

since it appears *after* the ZIP archive, but before the standard path, 
it should be either a registry setting or a custom-built interpreter
(is this an ActiveState build?).  or maybe you could get this effect if 
you have a copy of "python.exe" in d:\python, but I'm pretty sure that
the directory should end up at the *end* of the path in that case.

have you searched the *entire* registry for the "PythonCore" key? 
(python looks under HKEY_LOCAL_MACHINE and HKEY_CURRENT_USER)

what's sys.prefix and sys.exec_prefix set to on your machine, btw?

</F>




More information about the Python-list mailing list