default import path

Fabien SK fabsk+news at free.fr
Mon Jul 28 04:59:12 EDT 2003


Peter wrote:
> <newbie question>
> How can I edit the default import path for Python under Windows?
> 
> I want to use the piddle module.  So far, I've copied the unzipped contents
> of the zip file to c:\prog~1\python\lib\site-packages, but how do I set it
> so this is automatically on the python path?
> 
> (I don't want to have to manually add that directory every time.)

Hi,

I added this key in the registry:

HKEY_LOCAL_MACHINE\SOFTWARE\Python\PythonCore\2.2\PythonPath\Some_name

and I set the default value for this key to the new Path

Have a nice day
Fabien





More information about the Python-list mailing list