move up a level

Fredrik Lundh fredrik at pythonware.com
Tue Nov 21 01:50:39 EST 2006


rplobue at yahoo.com wrote:

> 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.

that's how it's usually done.  what does "doesn't work" mean in this case?

</F>




More information about the Python-list mailing list