diff options
| author | Paweł Jastrzębski <[email protected]> | 2018-04-21 09:26:48 +0200 |
|---|---|---|
| committer | Paweł Jastrzębski <[email protected]> | 2018-04-21 09:26:48 +0200 |
| commit | a2a405e5f599f9bebd7487abf2756b1aff4ff81d (patch) | |
| tree | aea2d21ff40585b94b7bdadd8a5b3183bba53628 /kindlecomicconverter/startup.py | |
| parent | Use more standard __version__ rather than PILLOW_VERSION (diff) | |
| parent | Make file type error more informative (display file name) (diff) | |
| download | kcc-a2a405e5f599f9bebd7487abf2756b1aff4ff81d.tar.gz kcc-a2a405e5f599f9bebd7487abf2756b1aff4ff81d.tar.bz2 kcc-a2a405e5f599f9bebd7487abf2756b1aff4ff81d.zip | |
Merge branch 'Gokuroro-master' into dev
Diffstat (limited to 'kindlecomicconverter/startup.py')
| -rw-r--r-- | kindlecomicconverter/startup.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/kindlecomicconverter/startup.py b/kindlecomicconverter/startup.py index deb6313..158f520 100644 --- a/kindlecomicconverter/startup.py +++ b/kindlecomicconverter/startup.py @@ -30,15 +30,15 @@ def start(): os.environ['QT_AUTO_SCREEN_SCALE_FACTOR'] = "1" KCCAplication = KCC_gui.QApplicationMessaging(sys.argv) if KCCAplication.isRunning(): - if len(sys.argv) > 1: - KCCAplication.sendMessage(sys.argv[1]) + for i in range (1, len(sys.argv)): + KCCAplication.sendMessage(sys.argv[i]) else: KCCAplication.sendMessage('ARISE') else: KCCWindow = KCC_gui.QMainWindowKCC() KCCUI = KCC_gui.KCCGUI(KCCAplication, KCCWindow) - if len(sys.argv) > 1: - KCCUI.handleMessage(sys.argv[1]) + for i in range (1, len(sys.argv)): + KCCUI.handleMessage(sys.argv[i]) sys.exit(KCCAplication.exec_()) |