As we all know, python -m name
(see interface options) can run module named name
that is present in PYTHONPATH
. Also it can run package, if there is __main__
module inside of that package (actually, it will run that module).
Running module with python -m
in Python ≥ 2.4 is okay. But beware of running packages this way in Python 2.4, 2.5 and 2.6.
This blog is about things I encounter while doing web and non-web software development.