Importing from upper directory

Harlin Seritt harlinseritt at yahoo.com
Sat Feb 17 12:55:56 EST 2007


I have a script that I want to import called upper.py. It is 2
directories above the script that will call it - i'll call that one
main.py. How am I able to import a script in a directory that is above
it?

Thanks,

Harlin




More information about the Python-list mailing list