--- a/src/eric7/Plugins/VcsPlugins/vcsSubversion/SvnNewProjectOptionsDialog.py Sun Dec 18 14:19:10 2022 +0100 +++ b/src/eric7/Plugins/VcsPlugins/vcsSubversion/SvnNewProjectOptionsDialog.py Sun Dec 18 19:33:46 2022 +0100 @@ -13,8 +13,9 @@ from PyQt6.QtCore import QDir, pyqtSlot from PyQt6.QtWidgets import QDialog, QDialogButtonBox -from eric7 import Preferences, Utilities +from eric7 import Preferences from eric7.EricWidgets.EricPathPicker import EricPathPickerModes +from eric7.SystemUtilities import FileSystemUtilities, OSUtilities from .Config import ConfigSvnProtocols from .Ui_SvnNewProjectOptionsDialog import Ui_SvnNewProjectOptionsDialog @@ -43,7 +44,7 @@ self.vcs = vcs - hd = Utilities.toNativeSeparators(QDir.homePath()) + hd = FileSystemUtilities.toNativeSeparators(QDir.homePath()) hd = os.path.join(hd, "subversionroot") self.vcsUrlPicker.setText(hd) @@ -51,10 +52,10 @@ self.networkPath = "localhost/" self.localProtocol = True - ipath = Preferences.getMultiProject("Workspace") or Utilities.getHomeDir() + ipath = Preferences.getMultiProject("Workspace") or OSUtilities.getHomeDir() self.__initPaths = [ - Utilities.fromNativeSeparators(ipath), - Utilities.fromNativeSeparators(ipath) + "/", + FileSystemUtilities.fromNativeSeparators(ipath), + FileSystemUtilities.fromNativeSeparators(ipath) + "/", ] self.vcsProjectDirPicker.setText(self.__initPaths[0]) @@ -73,7 +74,8 @@ @param txt name of the project directory (string) """ self.buttonBox.button(QDialogButtonBox.StandardButton.Ok).setEnabled( - bool(txt) and Utilities.fromNativeSeparators(txt) not in self.__initPaths + bool(txt) + and FileSystemUtilities.fromNativeSeparators(txt) not in self.__initPaths ) def on_vcsUrlPicker_pickerButtonClicked(self):