Finding absolute pathname?

Gerrit Holl gerrit.holl at pobox.com
Tue Jul 20 15:45:03 EDT 1999


On Tue, Jul 20, 1999 at 03:13:40PM +0000, rdudfield at my-deja.com wrote:
> How do I find the absolute pathname of the current directory?
> 
> eg /usr/doc, or c:\temp
> 
> os.curdir gives .
> 
> I need the absolute path name ( is that what you call it ? ).
> 
> Thanks in advance.
> 

os.getcwd() gets the Current Working Directory.

regards,
Gerrit.




More information about the Python-list mailing list