Running a python package [duplicate] Running a python package [duplicate] python python

Running a python package [duplicate]


The feature to run the __main__ module of a package when using the command line -m option was introduced in Python 2.7. For 2.6 you need to specify the package module name to run; -m test.__main__ should work. See the documentation here.