From 780365bb9f659d3532e36922c37594e7782f1f5a Mon Sep 17 00:00:00 2001 From: Daniel Katz Date: Tue, 8 Jan 2019 11:12:33 -0500 Subject: [PATCH] Debug failing Windows test. --- .../build/lib/bazel/rules/python/python_stub_template.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/google/devtools/build/lib/bazel/rules/python/python_stub_template.txt b/src/main/java/com/google/devtools/build/lib/bazel/rules/python/python_stub_template.txt index 3c0b1ae0c7184b..d9c84a69b775c8 100644 --- a/src/main/java/com/google/devtools/build/lib/bazel/rules/python/python_stub_template.txt +++ b/src/main/java/com/google/devtools/build/lib/bazel/rules/python/python_stub_template.txt @@ -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')