[issue14088] sys.executable generating canonical path
Antoine Pitrou
report at bugs.python.org
Thu Feb 23 00:17:32 CET 2012
Antoine Pitrou <pitrou at free.fr> added the comment:
> We can use realpath() if the function is available. Something similar
> is already done for sys.argv[0]. We should also use GetFullPathNameW()
> on Windows.
GetFullPathName() is an abspath() equivalent. For realpath() you want
GetFinalPathNameByHandle(), aka. _nt.getfinalpathname().
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue14088>
_______________________________________
More information about the Python-bugs-list
mailing list