Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #41460

The usage of -m option of python

Path csiph.com!usenet.pasdenom.info!dedibox.gegeweb.org!gegeweb.eu!nntpfeed.proxad.net!proxad.net!feeder1-2.proxad.net!usenet-fr.net!nerim.net!novso.com!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <pengyu.ut@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.041
X-Spam-Evidence '*H*': 0.92; '*S*': 0.00; 'used.': 0.07; 'subject:python': 0.11; '.py': 0.16; 'subject:usage': 0.16; 'sys.path': 0.16; 'script.': 0.17; 'module': 0.19; 'runs': 0.22; 'example': 0.23; 'thanks!': 0.26; 'message-id:@mail.gmail.com': 0.27; 'searches': 0.29; 'file': 0.32; 'anybody': 0.32; 'could': 0.32; 'to:addr:python-list': 0.33; 'hi,': 0.33; 'received:google.com': 0.34; 'received:209.85': 0.35; 'option': 0.37; 'quite': 0.37; 'received:209': 0.37; 'to:addr:python.org': 0.39; 'provide': 0.62; 'subject:The': 0.71; 'subject: -': 0.84
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:date:message-id:subject:from:to :content-type; bh=FRlZAeT82GNsgFyZF35vDb8BLl6qjLCTtZUvTY5OouI=; b=fVlsUIL29vYI8tgr1zbAdBzLQUz8mdU+nwEqBVGhDHuJLSHpRM12eebPmoTviKQHix v2vBSKJhJCGgqqguJzTxKE/KP20sJq88pOkKi187klk5eAc3cpZ1vq6Nir5RF/Vqs7re r2xyfsXWaqp/E058eTDWYPZCkWdWBi60blvmdHAWYk0l2ASLF45MFOu81KxZ5BasbQfz us/4MQVjYpQKWbQiFbj1N8RhDRs9BRf8jFjZ5fFbBsGNRjJTLfpBIDi6D0wsXvT8yRVf npy3ZKrdRjRz9yKoVxHRpkHNvzlEkh0kJyAjnaLq4dmIVx/i0+GYl4ZX/DPIwa9ni+eV 3Xxg==
MIME-Version 1.0
X-Received by 10.49.15.198 with SMTP id z6mr25322946qec.6.1363641447610; Mon, 18 Mar 2013 14:17:27 -0700 (PDT)
Date Mon, 18 Mar 2013 16:17:27 -0500
Subject The usage of -m option of python
From Peng Yu <pengyu.ut@gmail.com>
To python-list@python.org
Content-Type text/plain; charset=ISO-8859-1
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.3476.1363641451.2939.python-list@python.org> (permalink)
Lines 13
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1363641451 news.xs4all.nl 6940 [2001:888:2000:d::a6]:51950
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:41460

Show key headers only | View raw


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

Back to comp.lang.python | Previous | NextNext in thread | Find similar | Unroll thread


Thread

The usage of -m option of python Peng Yu <pengyu.ut@gmail.com> - 2013-03-18 16:17 -0500
  Re: The usage of -m option of python Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-03-19 07:06 +0000
  Re: The usage of -m option of python Tom P <werotizy@freent.dd> - 2013-03-27 18:06 +0100

csiph-web