I am trying to write a Python script that can move and copy files on a remote Linux server. However, I can\'t assume that everyone running the script (on Windows) will have mapp
Not a very elegant solution, but you could just try all the drives?
From here:
import win32api drives = win32api.GetLogicalDriveStrings() drives = drives.split('\000')[:-1] print drives
Then you could use os.path.exists() on every drive:\var\SomeFile.txt until you find the right one.
os.path.exists()