Issue 1027570: os.stat errors when using shared drive on XP or NT (original) (raw)

The problem is when a file is executed from a shared drive then no letter drive name exists. So the result returned by os.path.exists(os.getcwd()) does not return true. Problem exists for both Active State and Idle on windows for both XP and NT2000: The problem is with os.stat even though the file open seems to work ok. Notice other error for Active State Python.

Python 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200 32 bit (Intel)] on win32 Type "copyright", "credits" or "license()" for more information.

IDLE 1.0.2 ==== No Subprocess ====

import os os.getcwd() '\\Tardis\QCOS' os.path.exists(os.getcwd()) False os.stat(os.getcwd()) Traceback (most recent call last): File "<pyshell#4>", line 1, in ? os.stat(os.getcwd()) OSError: [Errno 2] No such file or directory: '\\Tardis\QCOS'

PythonWin 2.3.2 (#49, Nov 13 2003, 10:34:54) [MSC v.1200 32 bit (Intel)] on win32. Portions Copyright 1994-2001 Mark Hammond (mhammond@skippinet.com.au) - see 'Help/About PythonWin' for further copyright information.

Traceback (most recent call last): File "C:\Python23\Lib\site-packages\Pythonwin\pywin\framework\intpyapp.py", line 332, in OnFileRun scriptutils.RunScript(None, None, showDlg) File "C:\Python23\Lib\site-packages\Pythonwin\pywin\framework\scriptutils.py", line 259, in RunScript path = win32ui.FullPath(path) win32ui: The file name is invalid win32ui: Error in Command Message handler for command ID 36864, Code 0 import os os.getcwd() '\\Tardis\QCOS' os.path.exists(os.getcwd()) False os.stat(os.getcwd()) Traceback (most recent call last): File "", line 1, in ? OSError: [Errno 2] No such file or directory: '\\Tardis\QCOS'