[issue8342] Python fails to run if launched from NTFS symlink and DLL not in PATH
Jason R. Coombs
report at bugs.python.org
Thu Apr 8 03:21:36 CEST 2010
New submission from Jason R. Coombs <jaraco at jaraco.com>:
While trying to work out a failing test_platform.PlatformTest.test_architecture_via_symlink, I found a more fundamental problem.
In the build environment, python.exe depends on pythonXX.dll being in the same directory as sys.executable to load the interpreter. If Python is launched from an NTFS symlink, sys.executable may be located in a directory other than the DLL, and the interpreter fails to run (returning exit code 0xC0000135).
This may be expected behavior, but it causes test_architecture_via_symlink to fail once Python becomes aware of symlinks in Windows (sans cygwin).
It took me a while to track this down, so I wanted to be sure to document the behavior.
components: Tests, Windows
title: Python fails to run if launched from NTFS symlink and DLL not in PATH
versions: Python 3.1, Python 3.2
Python tracker <report at bugs.python.org>
More information about the Python-bugs-list