Relative Imports, why the hell is it so hard?
mkhitrov at gmail.com
Wed Mar 25 02:35:55 CET 2009
On Tue, Mar 24, 2009 at 8:57 PM, Istvan Albert <istvan.albert at gmail.com> wrote:
> Does it not bother you that a module that uses relative imports cannot
> be run on its own anymore?
$ python --help
-m mod : run library module as a script (terminates option list)
$ python -m some.module.name
Works perfectly fine with relative imports.
More information about the Python-list