From 5ff56a2b4ba4df7e3714c87a1a38d2d9bf98afc0 Mon Sep 17 00:00:00 2001 From: "Veronica K. B. Olsen" Date: Mon, 3 Jun 2019 21:19:05 +0200 Subject: [PATCH] Properly set application name --- nw/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nw/__init__.py b/nw/__init__.py index 0015aabd..03f8599d 100644 --- a/nw/__init__.py +++ b/nw/__init__.py @@ -126,7 +126,7 @@ def main(sysArgs): print(helpMsg) exit() elif inOpt in ("-v", "--version"): - print("makeNovel %s Version %s" % (__status__,__version__)) + print("%s %s Version %s" % (__package__,__status__,__version__)) exit() elif inOpt in ("-d", "--debug"): debugLevel = logging.DEBUG @@ -184,7 +184,7 @@ def main(sysArgs): nwGUI = GuiMain() return nwGUI else: - nwApp = QApplication([]) + nwApp = QApplication([__package__]) nwGUI = GuiMain() exit(nwApp.exec_())