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 steve.dower
Recipients eryksun, ncoghlan, ned.deily, nedbat, steve.dower
Date 2017-03-08.14:37:18
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1488983838.86.0.294259772165.issue29723@psf.upfronthosting.co.za>
In-reply-to
Content
> C:\Temp doesn't belong in sys.path in this case

Hang on, why not? If I were running a module.py then it would be, so why is a package\__main__.py different (and not able to import itself or its siblings)? The package is the "script" being run here, yes?

Or is __main__.py different from __init__.py in this regard? (That is, it isn't *part* of the package, it's just a loose script that happens to inherit the name of its directory)
History
Date User Action Args
2017-03-08 14:37:18steve.dowersetrecipients: + steve.dower, ncoghlan, nedbat, ned.deily, eryksun
2017-03-08 14:37:18steve.dowersetmessageid: <1488983838.86.0.294259772165.issue29723@psf.upfronthosting.co.za>
2017-03-08 14:37:18steve.dowerlinkissue29723 messages
2017-03-08 14:37:18steve.dowercreate