On Tue, 25 Aug 2009 15:45:53 +0100, Chris Withers wrote:
> Hi All,
>
> Give this sitecustomize.py:
[...]
> What gives?!
Perhaps this?
http://bugs.python.org/issue1734860
--
Steven
--
http://mail.python.org/mailman/listinfo/python-list
Chris Withers wrote:
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
Okay, brain fail on my part,
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
Biz
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