Relative Imports, why the hell is it so hard?

Maxim Khitrov mkhitrov at
Wed Mar 25 02:35:55 CET 2009

On Tue, Mar 24, 2009 at 8:57 PM, Istvan Albert <istvan.albert at> 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

Works perfectly fine with relative imports.

- Max

More information about the Python-list mailing list