According to http://docs.python.org/library/os.path.html
\"On Windows, there is a current directory for each drive\"
This is giv
I believe that the section you are reading that from is worded poorly. There is only one current working directory for your python session, and you get it from os.getcwd()
. You can use os.chdir(r'F:\')
to change directories to your F drive.
The part that that quote is referencing is relating to the os.path.join
method. It means that passing a first argument of 'C:'
instead of r'C:\'
, you will get the incorrect path (namely C:path
instead of C:\\path
).