eric7/eric7_trpreviewer.py

branch
eric7
changeset 8318
962bce857696
parent 8314
e3642a6a1e71
child 8356
68ec9c3d4de5
equal deleted inserted replaced
8316:0c7a44af84bc 8318:962bce857696
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)
61 """ 61 """
62 Main entry point into the application. 62 Main entry point into the application.
63 """ 63 """
64 global app 64 global app
65 65
66 from PyQt5.QtGui import QGuiApplication 66 from PyQt6.QtGui import QGuiApplication
67 QGuiApplication.setDesktopFileName("eric7_trpreviewer.desktop") 67 QGuiApplication.setDesktopFileName("eric7_trpreviewer.desktop")
68 68
69 options = [ 69 options = [
70 ("--config=configDir", 70 ("--config=configDir",
71 "use the given directory as the one containing the config files"), 71 "use the given directory as the one containing the config files"),

eric ide

mercurial