Path: csiph.com!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!feeder.erje.net!eu.feeder.erje.net!137.226.231.214.MISMATCH!newsfeed.fsmpi.rwth-aachen.de!news-1.dfn.de!news.dfn.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Tom P Newsgroups: comp.lang.python Subject: Re: The usage of -m option of python Date: Wed, 27 Mar 2013 18:06:04 +0100 Lines: 17 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: individual.net M1zlk9PRl8X8NY7ZRM0s9grD6bc742WORVgLqe3MB0FcWHexo= Cancel-Lock: sha1:LEZKDExZsUXbP/iYRPOE3cO48f0= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:16.0) Gecko/20121011 Thunderbird/16.0.1 In-Reply-To: Xref: csiph.com comp.lang.python:42019 On 03/18/2013 10:17 PM, Peng Yu wrote: > 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. > The most practical use I know is to run the debug program.. python -mpdb yourprogramm.py arguments..