Current drive and directory

EAS eriksp at attbi.nospam.com
Wed May 26 17:17:31 EDT 2004


Does anyone know how to display the current directory using DOS
and/or Python? I already tried os.pardir and os.curdir in Python, but all
they return are
a couple of periods...

>>>import os
>>>print os.curdir
.
>>>print os.pardir
..





More information about the Python-list mailing list