Skip to content

Commit

Permalink
Debug failing Windows test.
Browse files Browse the repository at this point in the history
  • Loading branch information
katzdm committed Jan 8, 2019
1 parent 6207235 commit 780365b
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ def GetWindowsPathWithUNCPrefix(path):
return path

# os.path.abspath returns a normalized absolute path
return unicode_prefix + os.path.abspath(path)
abspath = os.path.abspath(path)
return unicode_prefix + (abspath[1:] if abspath.startswith('\\') else abspath)

def HasWindowsExecutableExtension(path):
return path.endswith('.exe') or path.endswith('.com') or path.endswith('.bat')
Expand Down

0 comments on commit 780365b

Please sign in to comment.