This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author paul.moore
Recipients
Date 2005-02-23.10:42:06
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
Logged In: YES 
user_id=113328

Another point - given a program which comprises a couple of
.py files in the same directory (say main.py and support.py)
it would be quite normal (at least for me!) to do "import
support" from main.py. This patch would break this - and I'd
find it difficult to accept what I'm doing as "a mistake".

Fixing this would involve adding something like

    sys.path.insert(0,
os.path.dirname(os.path.abspath(sys.argv[0]))

at the top of my main script. I'd hate to try to explain
that to a beginner...

The use case here seems to be when a script itself has the
same name as a standard library module. I'd have to say that
 this seems a fairly unlikely case - and easy to fix when it
happens.
History
Date User Action Args
2007-08-23 15:37:35adminlinkissue946373 messages
2007-08-23 15:37:35admincreate