[issue14803] Add feature to allow code execution prior to __main__ invocation

Kristján Valur Jónsson report at bugs.python.org
Tue Dec 4 10:59:24 CET 2012


Kristján Valur Jónsson added the comment:

offtopic:  
Noticed something pretty annoying:
If a package uses relative imports, e.g.
from . import sibling_module,
then it is impossible to run that package as a script, even with the __main__ trick.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue14803>
_______________________________________


More information about the Python-bugs-list mailing list