Dynamic Import

Discussion in 'Python' started by Michael Hoffman, Sep 25, 2004.

  1. OctoberSnake wrote:

    > Can I import modules dynamically? Say for example I wanted the user to
    > specify what module my script would import, how to do this?


    I would start by Googling for <dynamically importing modules python>.
    --
    Michael Hoffman
    Michael Hoffman, Sep 25, 2004
    #1
    1. Advertising

  2. Michael Hoffman

    OctoberSnake Guest

    Can I import modules dynamically? Say for example I wanted the user to
    specify what module my script would import, how to do this?

    - OctoberSnake
    OctoberSnake, Sep 25, 2004
    #2
    1. Advertising

  3. Michael Hoffman

    John Roth Guest

    "OctoberSnake" <> wrote in message
    news:...
    > Can I import modules dynamically? Say for example I wanted the user to
    > specify what module my script would import, how to do this?


    Look for __import__() in the Library Reference, Built-in objects,
    Built-in Functions.

    John Roth
    >
    > - OctoberSnake
    >
    >
    >
    John Roth, Sep 26, 2004
    #3
    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. Paul Opal
    Replies:
    12
    Views:
    891
    Paul Opal
    Oct 11, 2004
  2. JPractitioner
    Replies:
    13
    Views:
    20,095
    Roedy Green
    Feb 24, 2006
  3. Vitali Gontsharuk
    Replies:
    2
    Views:
    518
    Vitali Gontsharuk
    Aug 25, 2005
  4. Artur M. Piwko

    import/from import question

    Artur M. Piwko, Jun 29, 2003, in forum: Python
    Replies:
    1
    Views:
    808
    Peter Hansen
    Jul 2, 2003
  5. Dennis
    Replies:
    2
    Views:
    484
    Dennis
    Aug 18, 2003
Loading...

Share This Page