[ python-Bugs-1534764 ] sys.path gets munged with certain directory structures
SourceForge.net
noreply at sourceforge.net
Fri Aug 4 21:57:36 CEST 2006
Bugs item #1534764, was opened at 2006-08-04 14:57
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1534764&group_id=5470
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Python Interpreter Core
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Gustavo Tabares (gustavotabares)
Assigned to: Nobody/Anonymous (nobody)
Summary: sys.path gets munged with certain directory structures
Initial Comment:
Platform: Windows XP SP2
Python Version: 2.4.2 final
First off, I'm not sure if this is the same bug as
947380 . Comments say it was fixed in Python 2.4, but
I'm running Python 2.4.2 and it looks like I'm hitting
the same issue. If this is the same issue and has been
fixed in a later version, I apologize.
To reproduce:
1. Create a new directory (e.g., 'foo').
2. Inside foo, create a __init__.py along with a
directory called 'stat' which also has an empty
__init__.py inside of it.
3. 'cd' to this directory via the command line and
start the Python interpreter.
Observe the 'import site' failed error. A quick check
at sys.path reveals that sys.path is munged and doesn't
contain all that it should.
WORKAROUND: Rename 'stat' directory to 'stats' or
something else.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1534764&group_id=5470
More information about the Python-bugs-list
mailing list