File tree Expand file tree Collapse file tree 1 file changed +0
-11
lines changed
Expand file tree Collapse file tree 1 file changed +0
-11
lines changed Original file line number Diff line number Diff line change @@ -114,11 +114,6 @@ def get_default_version() -> str: # pragma: no cover (platform dependent)
114114 if _find_by_py_launcher (exe ):
115115 return exe
116116
117- # Give a best-effort try for windows
118- default_folder_name = exe .replace ('.' , '' )
119- if os .path .exists (fr'C:\{ default_folder_name } \python.exe' ):
120- return exe
121-
122117 # We tried!
123118 return C .DEFAULT
124119
@@ -155,12 +150,6 @@ def norm_version(version: str) -> str:
155150 if version_exec and version_exec != version :
156151 return version_exec
157152
158- # If it is in the form pythonx.x search in the default
159- # place on windows
160- if version .startswith ('python' ):
161- default_folder_name = version .replace ('.' , '' )
162- return fr'C:\{ default_folder_name } \python.exe'
163-
164153 # Otherwise assume it is a path
165154 return os .path .expanduser (version )
166155
You can’t perform that action at this time.
0 commit comments