22 import Globals |
22 import Globals |
23 configDir = arg.replace("--config=", "") |
23 configDir = arg.replace("--config=", "") |
24 Globals.setConfigDir(configDir) |
24 Globals.setConfigDir(configDir) |
25 sys.argv.remove(arg) |
25 sys.argv.remove(arg) |
26 elif arg.startswith("--settings="): |
26 elif arg.startswith("--settings="): |
27 from PyQt5.QtCore import QSettings |
27 from PyQt6.QtCore import QSettings |
28 settingsDir = os.path.expanduser(arg.replace("--settings=", "")) |
28 settingsDir = os.path.expanduser(arg.replace("--settings=", "")) |
29 if not os.path.isdir(settingsDir): |
29 if not os.path.isdir(settingsDir): |
30 os.makedirs(settingsDir) |
30 os.makedirs(settingsDir) |
31 QSettings.setPath( |
31 QSettings.setPath( |
32 QSettings.Format.IniFormat, QSettings.Scope.UserScope, settingsDir) |
32 QSettings.Format.IniFormat, QSettings.Scope.UserScope, settingsDir) |
54 |
54 |
55 def main(): |
55 def main(): |
56 """ |
56 """ |
57 Main entry point into the application. |
57 Main entry point into the application. |
58 """ |
58 """ |
59 from PyQt5.QtGui import QGuiApplication |
59 from PyQt6.QtGui import QGuiApplication |
60 QGuiApplication.setDesktopFileName("eric7_unittest.desktop") |
60 QGuiApplication.setDesktopFileName("eric7_unittest.desktop") |
61 |
61 |
62 options = [ |
62 options = [ |
63 ("--config=configDir", |
63 ("--config=configDir", |
64 "use the given directory as the one containing the config files"), |
64 "use the given directory as the one containing the config files"), |