[New-bugs-announce] [issue10603] __file__ not usable, with certain paths on windows XP.

Campbell Barton report at bugs.python.org
Thu Dec 2 12:16:41 CET 2010

New submission from Campbell Barton <ideasman42 at gmail.com>:

# create this path.
# it could be made by any application but including this line
# so encoding is not confused.
# c:\äöü

# Now create a new script and save in the newly created dir

# In c:\äöü\test.py add the following line

# Now run the script from the command line using its absolute path.
c:\Python31\python.exe c:\äöü\test.py

--- This gives an error.
Traceback (most recent call last):
  File "m:\\xc3\xa4\xc3\xb6\xc3¼\test.py", line 2, in <module>
WindowsError: [Error 3] The system cannot find the path specified: 'm:\\\xc3\xa4\xc3\xb6\xc3¼\\*.*'

This is a bug because a script should be able to inspect the path where it is located.

components: Interpreter Core
messages: 123063
nosy: ideasman42
priority: normal
severity: normal
status: open
title: __file__ not usable, with certain paths on windows XP.
type: behavior
versions: Python 3.1

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list