inconsistent sitecustomize.py importing...

Chris Withers chris at simplistix.co.uk
Tue Aug 25 16:45:53 CEST 2009


Hi All,

Give this sitecustomize.py:

print "ping"

...and this script:

#!/usr/local/bin/python2.5
print "pong!"

...both in ~/folder, I would expect the output from:

~$./folder/script

...to be:

ping
pong

...but sitecustomize.py is not imported :-(

If I do:

~$/usr/local/bin/python2.5 folder/script

...still no import.

However, if I do:

~/folder$/usr/local/bin/python2.5 script

...sitecustomize.py IS imported!

What gives?!

Chris

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



More information about the Python-list mailing list