Simple Path issues

Gary Josack gary at
Sun Jul 27 07:41:08 CEST 2008

Brett Ritter wrote:
> On Jul 26, 2:57 pm, Gary Josack <g... at> wrote:
>> sys.path is a list that will tell you where python is looking. You can
>> append to this in your scripts to have python look in a specific
>> directory for your own modules.
> I can, but that is almost certainly not the standard way to develop a
> module.
> I see nothing in sys.path that I have write permissions to.
> Is altering my PYTHONPATH the normal way to develop (under the
> assumption that later users will install in their conventional python
> search path)?
> --
If you plan to put your module in a non-standard location then your only 
options are adding to sys.path in you program or setting PYTHONPATH. If 
this is only for development then you're better off just using 
PYTHONPATH with the assumption "users will install in their conventional 
python search path".

More information about the Python-list mailing list