src/eric7/Plugins/VcsPlugins/vcsMercurial/LargefilesExtension/LfConvertDataDialog.py

branch
eric7
changeset 9624
b47dfa7a137d
parent 9473
3f23dbf37dbe
child 9653
e67609152c5e
--- a/src/eric7/Plugins/VcsPlugins/vcsMercurial/LargefilesExtension/LfConvertDataDialog.py	Sun Dec 18 14:19:10 2022 +0100
+++ b/src/eric7/Plugins/VcsPlugins/vcsMercurial/LargefilesExtension/LfConvertDataDialog.py	Sun Dec 18 19:33:46 2022 +0100
@@ -12,8 +12,8 @@
 from PyQt6.QtCore import pyqtSlot
 from PyQt6.QtWidgets import QDialog, QDialogButtonBox
 
-from eric7 import Utilities
 from eric7.EricWidgets.EricPathPicker import EricPathPickerModes
+from eric7.SystemUtilities import FileSystemUtilities
 
 from . import getDefaults
 from .Ui_LfConvertDataDialog import Ui_LfConvertDataDialog
@@ -38,7 +38,7 @@
         self.newProjectPicker.setMode(EricPathPickerModes.DIRECTORY_MODE)
 
         self.__defaults = getDefaults()
-        self.__currentPath = Utilities.toNativeSeparators(currentPath)
+        self.__currentPath = FileSystemUtilities.toNativeSeparators(currentPath)
 
         self.currentProjectLabel.setPath(currentPath)
         self.newProjectPicker.setText(os.path.dirname(currentPath))
@@ -62,7 +62,8 @@
         """
         self.buttonBox.button(QDialogButtonBox.StandardButton.Ok).setEnabled(
             txt
-            and Utilities.toNativeSeparators(txt) != os.path.dirname(self.__currentPath)
+            and FileSystemUtilities.toNativeSeparators(txt)
+            != os.path.dirname(self.__currentPath)
         )
 
     def getData(self):

eric ide

mercurial