Steve Dower added the comment:

> 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)

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue29723>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to