eric7/eric7_trpreviewer.py

branch
eric7
changeset 8314
e3642a6a1e71
parent 8312
800c432b34c8
child 8318
962bce857696
equal deleted inserted replaced
8313:dac33c7fce07 8314:e3642a6a1e71
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 PyQt5.QtGui import QGuiApplication
67 QGuiApplication.setDesktopFileName("eric6_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"),
72 ("--settings=settingsDir", 72 ("--settings=settingsDir",
87 if res > 0: 87 if res > 0:
88 if len(sys.argv) > 1: 88 if len(sys.argv) > 1:
89 client.processArgs(sys.argv[1:]) 89 client.processArgs(sys.argv[1:])
90 sys.exit(0) 90 sys.exit(0)
91 elif res < 0: 91 elif res < 0:
92 print("eric6_trpreviewer: {0}".format(client.errstr())) 92 print("eric7_trpreviewer: {0}".format(client.errstr()))
93 sys.exit(res) 93 sys.exit(res)
94 else: 94 else:
95 res = Startup.simpleAppStartup(sys.argv, 95 res = Startup.simpleAppStartup(sys.argv,
96 appinfo, 96 appinfo,
97 createMainWidget, 97 createMainWidget,

eric ide

mercurial