[Python-bugs-list] [ python-Bugs-404130 ] site.py sets sys.path incorrectly.

nobody nobody@sourceforge.net
Wed, 28 Feb 2001 10:55:39 -0800


Bugs #404130, was updated on 2001-02-25 11:48
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=404130&group_id=5470

Category: None
Group: Not a Bug
Status: Closed
Priority: 5
Submitted By: Don Rozenberg
Assigned to: Nobody/Anonymous
Summary: site.py sets sys.path incorrectly.

Initial Comment:
site.py appears to append the site-packages to the
END of sys.path.  I think it should be set after 
PYTHONPATH but before the standard places like

'/home/rozen/lib/python2.1',
'/home/rozen/lib/python2.1/plat-linux2',
'/home/rozen/lib/python2.1/lib-tk',
'/home/rozen/lib/python2.1/lib-dynload'.

How else can I install a new version of any of the
packages in the standard places without overwriting
or renaming them.

In particular, I am trying to use disutils to
distribute a version of _tkinter and Tkinter.py; they
get placed in site-packages, which I think is the
correct place, but they don't get executed because the
usual suspects are searched first.

I guess that I can force the issue by setting the
PYTHONPATH, but I don't know how to do that from
distutils.  And that is not an answer.

----------------------------------------------------------------------

Comment By: Fred L. Drake, Jr.
Date: 2001-02-28 10:55

Message:
Logged In: YES 
user_id=3066

The decision not to allow easy overriding of standard modules is deliberate; this is done to protect the interpreter from accidental name conflicts and the like.

Closed as "Not a Bug".

----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=404130&group_id=5470