Revert "avoid test failure in execer.py:137 if cwd not on c: drive (in windows)"

This reverts commit d664e86c89.
This commit is contained in:
Bob Hyman 2016-08-14 17:27:28 -04:00
parent d664e86c89
commit f7e7e2a48f
3 changed files with 1 additions and 5 deletions

View file

@ -133,11 +133,7 @@ class CommandsCache(abc.Mapping):
if os.path.isfile(full_name)
), None)
if local_bin:
if os.path.splitdrive(cwd)[0] != os.path.splitdrive( local_bin)[0]: # cwd not on same drive as bin
return os.path.abspath( local_bin) # avoid ValueError from relpath()
else:
return os.path.abspath(os.path.relpath(local_bin, cwd))
return os.path.abspath(os.path.relpath(local_bin, cwd))
cached = next((cmd for cmd in possibilities if cmd in self._cmds_cache), None)
if cached: