12 import os |
12 import os |
13 |
13 |
14 from PyQt6.QtCore import QCoreApplication, QObject, QProcess, pyqtSignal |
14 from PyQt6.QtCore import QCoreApplication, QObject, QProcess, pyqtSignal |
15 from PyQt6.QtWidgets import QDialog |
15 from PyQt6.QtWidgets import QDialog |
16 |
16 |
17 from eric7 import Globals, Preferences |
17 from eric7 import Preferences |
18 from eric7.EricWidgets import EricMessageBox |
18 from eric7.EricWidgets import EricMessageBox |
|
19 from eric7.SystemUtilities import OSUtilities |
19 |
20 |
20 from . import condaVersion, rootPrefix |
21 from . import condaVersion, rootPrefix |
21 from .CondaExecDialog import CondaExecDialog |
22 from .CondaExecDialog import CondaExecDialog |
22 |
23 |
23 |
24 |
81 else: |
82 else: |
82 pathPrefixes = [rootPrefix()] |
83 pathPrefixes = [rootPrefix()] |
83 for pathPrefix in pathPrefixes: |
84 for pathPrefix in pathPrefixes: |
84 python = ( |
85 python = ( |
85 os.path.join(pathPrefix, "python.exe") |
86 os.path.join(pathPrefix, "python.exe") |
86 if Globals.isWindowsPlatform() |
87 if OSUtilities.isWindowsPlatform() |
87 else os.path.join(pathPrefix, "bin", "python") |
88 else os.path.join(pathPrefix, "bin", "python") |
88 ) |
89 ) |
89 if os.path.exists(python): |
90 if os.path.exists(python): |
90 break |
91 break |
91 else: |
92 else: |