os.getcwd() for a different drive in Windows

Viewed 10506

According to http://docs.python.org/library/os.path.html

"On Windows, there is a current directory for each drive"

This is giving me some trouble when I use os.getcwd() on Windows.

I am using Python 2.7 on my C drive to call a script located on the shared network drive F:. Yet, os.getcwd() from within this script is returning a directory on my C drive.

Is there anything I can do to get the working directory for my F drive?

3 Answers
Related