Skip to content

Commit e5f1b13

Browse files
committed
fix windows
1 parent 5bb1b01 commit e5f1b13

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/private/python_bootstrap_template.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ def GetWindowsPathWithUNCPrefix(path):
9898
def HasWindowsExecutableExtension(path):
9999
return path.endswith('.exe') or path.endswith('.com') or path.endswith('.bat')
100100

101-
if IsWindows() and not HasWindowsExecutableExtension(PYTHON_BINARY):
101+
if PYTHON_BINARY and IsWindows() and not HasWindowsExecutableExtension(PYTHON_BINARY):
102102
PYTHON_BINARY = PYTHON_BINARY + '.exe'
103103

104104
def SearchPath(name):

0 commit comments

Comments
 (0)