[issue24690] find_executable should expand ~
Eric V. Smith
report at bugs.python.org
Thu Jul 23 12:40:45 CEST 2015
Eric V. Smith added the comment:
You can use os.path.expanduser(). In general we leave decisions such as expanding user names and environment variables up to the caller, and we don't build them in to each function.
Although I'm not sure why you'd want to pass a full path name to distutils.spawn.find_executable(), if that's the function you're talking about. I'm not even entirely sure it's supposed to work given a full path.
----------
nosy: +eric.smith
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue24690>
_______________________________________
More information about the Python-bugs-list
mailing list