Even more inconsistent sitecustomize.py importing with PYTHONPATHrolled in...

Discussion in 'Python' started by Chris Withers, Aug 25, 2009.

  1. 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
     
    Chris Withers, Aug 25, 2009
    #1
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Stan Goodman

    Even older fart, even newer newbie

    Stan Goodman, Jul 3, 2003, in forum: Java
    Replies:
    11
    Views:
    954
    Stan Goodman
    Jul 4, 2003
  2. Jamie
    Replies:
    1
    Views:
    2,213
    Thomas F.B.
    Nov 3, 2003
  3. F. GEIGER

    Umlauts, encodings, sitecustomize.py

    F. GEIGER, Nov 5, 2004, in forum: Python
    Replies:
    5
    Views:
    2,871
    Jeff Epler
    Nov 9, 2004
  4. Replies:
    3
    Views:
    636
    Terry Reedy
    Mar 22, 2014
  5. Michael
    Replies:
    4
    Views:
    752
    Matt Hammond
    Jun 26, 2006
  6. Chris Withers

    inconsistent sitecustomize.py importing...

    Chris Withers, Aug 25, 2009, in forum: Python
    Replies:
    1
    Views:
    387
    Steven D'Aprano
    Aug 25, 2009
  7. Rob Knop
    Replies:
    1
    Views:
    461
  8. Robert Klemme

    With a Ruby Yell: more, more more!

    Robert Klemme, Sep 28, 2005, in forum: Ruby
    Replies:
    5
    Views:
    462
    Jeff Wood
    Sep 29, 2005
Loading...