src/eric7/CondaInterface/Conda.py

branch
eric7
changeset 9624
b47dfa7a137d
parent 9584
620d2ac049da
child 9653
e67609152c5e
equal deleted inserted replaced
9623:9c1f429cb56b 9624:b47dfa7a137d
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:

eric ide

mercurial