The usage of -m option of python

Peng Yu pengyu.ut at gmail.com
Mon Mar 18 17:17:27 EDT 2013


Hi,

I don't quite understand how -m option is used. And it is difficult to
search for -m in google. Could anybody provide me with an example on
how to use this option? Thanks!

       -m module-name
              Searches sys.path for the named module and runs the
corresponding .py file as a script.

-- 
Regards,
Peng



More information about the Python-list mailing list