Bugs item #1027570, was opened at 2004-09-13 15:26 Message generated for change (Comment added) made by nnorwitz You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1027570&group_id=5470
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Windows Group: Python 2.3 Status: Open Resolution: None Priority: 5 Submitted By: zeke (zeke_matzke) Assigned to: Nobody/Anonymous (nobody) Summary: os.stat errors when using shared drive on XP or NT Initial Comment: 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 ([EMAIL PROTECTED]) - 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 "<interactive input>", line 1, in ? OSError: [Errno 2] No such file or directory: '\\Tardis\QCOS' >>> ---------------------------------------------------------------------- >Comment By: Neal Norwitz (nnorwitz) Date: 2005-10-02 23:04 Message: Logged In: YES user_id=33168 Can you propose a patch that would correct this problem? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1027570&group_id=5470 _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com