28 elif arg.startswith("--settings="): |
28 elif arg.startswith("--settings="): |
29 from PyQt5.QtCore import QSettings |
29 from PyQt5.QtCore import QSettings |
30 SettingsDir = os.path.expanduser(arg.replace("--settings=", "")) |
30 SettingsDir = os.path.expanduser(arg.replace("--settings=", "")) |
31 if not os.path.isdir(SettingsDir): |
31 if not os.path.isdir(SettingsDir): |
32 os.makedirs(SettingsDir) |
32 os.makedirs(SettingsDir) |
33 QSettings.setPath(QSettings.IniFormat, QSettings.UserScope, |
33 QSettings.setPath( |
34 SettingsDir) |
34 QSettings.Format.IniFormat, QSettings.Scope.UserScope, SettingsDir) |
35 sys.argv.remove(arg) |
35 sys.argv.remove(arg) |
36 |
36 |
37 from Globals import AppInfo |
37 from Globals import AppInfo |
38 |
38 |
39 from Toolbox import Startup |
39 from Toolbox import Startup |