importing modules from higher level directory

Discussion in 'Python' started by Nathan Huesken, Jun 25, 2010.

  1. Hi,

    Is it somehow possible to import modules from *.py files in a higher
    level directory?
    Intuitively I would do

    import ../module

    but that does not work.
    How does it work?

    Thanks!
    Nathan
     
    Nathan Huesken, Jun 25, 2010
    #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. Nathan Sokalski
    Replies:
    0
    Views:
    739
    Nathan Sokalski
    May 30, 2005
  2. Leon

    Higher-level OpenGL modules

    Leon, Sep 5, 2006, in forum: Python
    Replies:
    5
    Views:
    489
    Ben Sizer
    Sep 6, 2006
  3. Iain
    Replies:
    7
    Views:
    556
    John Dunlop
    Oct 17, 2006
  4. pabbu
    Replies:
    8
    Views:
    739
    Marc Boyer
    Nov 7, 2005
  5. Nathan Sokalski
    Replies:
    0
    Views:
    198
    Nathan Sokalski
    May 30, 2005
Loading...

Share This Page