Globals/__init__.py

changeset 6366
6c1cd7e2902a
parent 6365
85f8745427a6
child 6474
72c063cc730b
--- a/Globals/__init__.py	Sun Jun 24 13:21:52 2018 +0200
+++ b/Globals/__init__.py	Sun Jun 24 13:51:26 2018 +0200
@@ -305,51 +305,6 @@
 
 
 ###############################################################################
-## functions for searching a Python2/3 interpreter
-###############################################################################
-
-
-# TODO: improve this analog to the one found in the old PluginPipInterface
-def findPythonInterpreters(pyVersion):
-    """
-    Module function for searching a Python interpreter.
-    
-    @param pyVersion major Python version
-    @return list of interpreters found (list of strings)
-    """
-    if pyVersion == 2:
-        winPathList = ["C:\\Python25", "C:\\Python26",
-                       "C:\\Python27", "C:\\Python28"]
-        posixVersionsList = ["2.5", "2.6", "2.7", "2.8"]
-    else:
-        winPathList = ["C:\\Python3{0}".format(x) for x in range(11)]
-        posixVersionsList = ["3.{0}".format(x) for x in range(11)]
-    posixPathList = ["/usr/bin", "/usr/local/bin"]
-    
-    interpreters = []
-    if isWindowsPlatform():
-        # search the interpreters on Windows platforms
-        for path in winPathList:
-            exeList = [
-                "python.exe",
-                "python{0}.{1}.exe".format(path[-2], path[-1]),
-            ]
-            for exe in exeList:
-                interpreter = os.path.join(path, exe)
-                if os.path.isfile(interpreter):
-                    interpreters.append(interpreter)
-    else:
-        # search interpreters on Posix and Mac platforms
-        for path in posixPathList:
-            for version in posixVersionsList:
-                interpreter = os.path.join(path, "python{0}".format(version))
-                if os.path.isfile(interpreter):
-                    interpreters.append(interpreter)
-    
-    return interpreters
-
-
-###############################################################################
 ## functions for version handling
 ###############################################################################
 

eric ide

mercurial