eric6/eric6_qregularexpression.py

changeset 8143
2c730d5fd177
parent 7960
e8fc383322f7
equal deleted inserted replaced
8141:27f636beebad 8143:2c730d5fd177
26 elif arg.startswith("--settings="): 26 elif arg.startswith("--settings="):
27 from PyQt5.QtCore import QSettings 27 from PyQt5.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(QSettings.IniFormat, QSettings.UserScope, 31 QSettings.setPath(
32 settingsDir) 32 QSettings.Format.IniFormat, QSettings.Scope.UserScope, settingsDir)
33 sys.argv.remove(arg) 33 sys.argv.remove(arg)
34 34
35 from Globals import AppInfo 35 from Globals import AppInfo
36 36
37 from Toolbox import Startup 37 from Toolbox import Startup

eric ide

mercurial