[Python-Dev] FW: Redundant elements in sys.path
Tim Peters
tim_one@email.msn.com
Tue, 8 Feb 2000 19:39:51 -0500
Someone who thinks the Windows installation is a delight may wish to reply
to this msg from c.l.py <wink>.
-----Original Message-----
From: python-list-admin@python.org [mailto:python-list-admin@python.org]
On Behalf Of Steve Holden
Sent: Tuesday, February 08, 2000 10:06 AM
To: python-list@python.org
Subject: Redundant elements in sys.path
I noticed that both PythonWin and Idle have the same items, although
with different case representations, in sys.path. Since the filestore
isn't case-sensitive on Windows NT I'm wondering
a) How these duplicates came about (multiple installs?), and
b) What I can do to get rid of them (registry scoured, but
nothing probable found).
The code I used to detect this situation is no great shakes:
>>> s=list(sys.path)
>>> s.sort()
>>> for p in s:
... print p
Output from PythonWin:
C:\Program Files\Python
C:\Program Files\Python\DLLs
C:\Program Files\Python\DLLs
C:\Program Files\Python\Lib
C:\Program Files\Python\Lib\lib-tk
C:\Program Files\Python\Lib\plat-win
C:\Program Files\Python\Pythonwin
C:\Program Files\Python\Pythonwin
C:\Program Files\Python\lib
C:\Program Files\Python\lib\lib-tk
C:\Program Files\Python\lib\plat-win
C:\Program Files\Python\win32
C:\Program Files\Python\win32\lib
Output from Idle:
C:\PROGRA~1\PYTHON
C:\PROGRA~1\Python\Tools\idle
C:\Program Files\Python
C:\Program Files\Python
C:\Program Files\Python\DLLs
C:\Program Files\Python\DLLs
C:\Program Files\Python\Lib
C:\Program Files\Python\Lib\lib-tk
C:\Program Files\Python\Lib\plat-win
C:\Program Files\Python\Pythonwin
C:\Program Files\Python\lib
C:\Program Files\Python\lib\lib-tk
C:\Program Files\Python\lib\plat-win
C:\Program Files\Python\win32
C:\Program Files\Python\win32\lib
Since I'm not running from source distribution I'd appreciate it
if someone could explain how PYTHONPATH is initialized and how I
can simplify my environment to remove this duplication.
regards
Steve Holden
--
"If computing ever stops being fun, I'll stop doing it"
--
http://www.python.org/mailman/listinfo/python-list