File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -106,25 +106,6 @@ def get_windows_path_with_unc_prefix(path):
106106 return unicode_prefix + os .path .abspath (path )
107107
108108
109- def has_windows_executable_extension (path ):
110- return path .endswith (".exe" ) or path .endswith (".com" ) or path .endswith (".bat" )
111-
112-
113- if (
114- _PYTHON_BINARY_VENV
115- and is_windows ()
116- and not has_windows_executable_extension (_PYTHON_BINARY_VENV )
117- ):
118- _PYTHON_BINARY_VENV = _PYTHON_BINARY_VENV + ".exe"
119-
120- if (
121- _PYTHON_BINARY_ACTUAL
122- and is_windows ()
123- and not has_windows_executable_extension (_PYTHON_BINARY_ACTUAL )
124- ):
125- _PYTHON_BINARY_ACTUAL = _PYTHON_BINARY_ACTUAL + ".exe"
126-
127-
128109def search_path (name ):
129110 """Finds a file in a given search path."""
130111 search_path = os .getenv ("PATH" , os .defpath ).split (os .pathsep )
@@ -186,7 +167,6 @@ def extract_zip(zip_path, dest_dir):
186167 target = f .read ()
187168 os .remove (file_path )
188169 os .symlink (target , file_path )
189- ##os.chmod(file_path, stat.S_IWRITE)
190170 # Of those, we set the lower 12 bits, which are the
191171 # file mode bits (since the file type bits can't be set by chmod anyway).
192172 elif attrs != 0 : # Rumor has it these can be 0 for zips created on Windows.
You can’t perform that action at this time.
0 commit comments