src/eric7/VirtualEnv/VirtualenvUpgradeConfigurationDialog.py

branch
eric7
changeset 9624
b47dfa7a137d
parent 9473
3f23dbf37dbe
child 9653
e67609152c5e
diff -r 9c1f429cb56b -r b47dfa7a137d src/eric7/VirtualEnv/VirtualenvUpgradeConfigurationDialog.py
--- a/src/eric7/VirtualEnv/VirtualenvUpgradeConfigurationDialog.py	Sun Dec 18 14:19:10 2022 +0100
+++ b/src/eric7/VirtualEnv/VirtualenvUpgradeConfigurationDialog.py	Sun Dec 18 19:33:46 2022 +0100
@@ -13,8 +13,9 @@
 from PyQt6.QtCore import QProcess, QTimer, pyqtSlot
 from PyQt6.QtWidgets import QDialog, QDialogButtonBox
 
-from eric7 import Globals, Preferences, Utilities
+from eric7 import Globals, Preferences
 from eric7.EricWidgets.EricPathPicker import EricPathPickerModes
+from eric7.SystemUtilities import FileSystemUtilities, PythonUtilities
 
 from .Ui_VirtualenvUpgradeConfigurationDialog import (
     Ui_VirtualenvUpgradeConfigurationDialog,
@@ -45,7 +46,7 @@
 
         self.pythonExecPicker.setMode(EricPathPickerModes.OPEN_FILE_MODE)
         self.pythonExecPicker.setWindowTitle(self.tr("Python Interpreter"))
-        self.pythonExecPicker.setDefaultDirectory(Globals.getPythonExecutable())
+        self.pythonExecPicker.setDefaultDirectory(PythonUtilities.getPythonExecutable())
 
         self.envNameLabel.setText(envName)
         self.envDirectoryLabel.setText(envPath)
@@ -73,7 +74,7 @@
             calls.append((self.pythonExecPicker.text(), ["-m", "venv"]))
         calls.extend(
             [
-                (Globals.getPythonExecutable(), ["-m", "venv"]),
+                (PythonUtilities.getPythonExecutable(), ["-m", "venv"]),
                 ("python3", ["-m", "venv"]),
                 ("python", ["-m", "venv"]),
             ]
@@ -149,7 +150,7 @@
         args.append(self.envDirectoryLabel.text())
 
         return (
-            Utilities.toNativeSeparators(self.pythonExecPicker.text()),
+            FileSystemUtilities.toNativeSeparators(self.pythonExecPicker.text()),
             args,
             self.logCheckBox.isChecked(),
         )

eric ide

mercurial