move up a level

rplobue at yahoo.com rplobue at yahoo.com
Tue Nov 21 01:07:48 EST 2006


alright, noob question: i want to open a file in a directory above the
current one i'm in.  I'm trying to use myfile =
open('../thefileiwant.txt', 'r')  but the ../ doesn't work.  How do i
do it?




More information about the Python-list mailing list