Re: The usage of -m option of python

Discussion in 'Python' started by Chris Angelico, Mar 18, 2013.

  1. On Tue, Mar 19, 2013 at 8:17 AM, 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.


    Well, I just searched for 'python m module', but I agree it's not
    easy. Anyway, Google read my mind and returned this:

    http://www.python.org/dev/peps/pep-0338/

    ChrisA
     
    Chris Angelico, Mar 18, 2013
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Julien ROUZIERES

    g++ -pg option and -shared option

    Julien ROUZIERES, Dec 21, 2004, in forum: C++
    Replies:
    1
    Views:
    739
    GianGuz
    Dec 21, 2004
  2. Peng Yu

    The usage of -m option of python

    Peng Yu, Mar 18, 2013, in forum: Python
    Replies:
    1
    Views:
    152
    Tom P
    Mar 27, 2013
  3. Modulok
    Replies:
    0
    Views:
    145
    Modulok
    Mar 18, 2013
  4. Terry Reedy

    Re: The usage of -m option of python

    Terry Reedy, Mar 19, 2013, in forum: Python
    Replies:
    2
    Views:
    147
    Terry Jan Reedy
    Apr 8, 2013
  5. Terry Reedy

    Re: The usage of -m option of python

    Terry Reedy, Mar 27, 2013, in forum: Python
    Replies:
    0
    Views:
    134
    Terry Reedy
    Mar 27, 2013
Loading...

Share This Page