How to walk up parent directories?

Dave Angel davea at ieee.org
Mon May 4 16:47:18 EDT 2009



Matthew Wilson wrote:
> On Sun 03 May 2009 09:24:59 PM EDT, Ben Finney wrote:
>   
>> Not every simple function belongs in the standard library :-)
>>     
>
> Thanks for the help with this!  Maybe I'm overestimating how often
> people need this walkup function.
>
> Matt
>
>   
Look at os.path.normpath(os.path.join( name, ".."))





More information about the Python-list mailing list