Even more inconsistent sitecustomize.py importing with PYTHONPATH rolled in...

Chris Withers chris at simplistix.co.uk
Tue Aug 25 10:53:03 EDT 2009


Chris Withers wrote:
> However, if I do:
> 
> ~/folder$/usr/local/bin/python2.5 script
> 
> ...sitecustomize.py IS imported!

However, the following doesn't import sitecustomize.py:

~/folder$ ./script

While the following DOES import sitecustomize.py:

~/folder$ export PYTHONPATH=
~/folder$ ./script

Bizarrely, none of the following import sitecustomize.py:

~$ export PYTHONPATH=~/folder
~$ ./script

~$ export PYTHONPATH=~/folder/
~$ ./script

~$ export PYTHONPATH=~/folder
~/folder$ ./script

~$ export PYTHONPATH=~/folder/
~/folder$ ./script

Does anyone have any clue why there's such a huge level of inconsistency 
here?!

Chris

-- 
Simplistix - Content Management, Batch Processing & Python Consulting
            - http://www.simplistix.co.uk



More information about the Python-list mailing list