diff options
| author | Paweł Jastrzębski <[email protected]> | 2017-03-17 11:11:00 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2017-03-17 11:11:00 +0100 |
| commit | c01ff83fce6e91a7ee417c113377996400770572 (patch) | |
| tree | c76b5d0398d5085a7a57e63a688856f28c3cab1b /kcc.py | |
| parent | Merge pull request #224 from ciromattia/dev (diff) | |
| parent | Update README.md (diff) | |
| download | kcc-c01ff83fce6e91a7ee417c113377996400770572.tar.gz kcc-c01ff83fce6e91a7ee417c113377996400770572.tar.bz2 kcc-c01ff83fce6e91a7ee417c113377996400770572.zip | |
Merge pull request #231 from ciromattia/dev
5.3.1
Diffstat (limited to 'kcc.py')
| -rwxr-xr-x | kcc.py | 20 |
1 files changed, 3 insertions, 17 deletions
diff --git a/kcc.py b/kcc.py index a93e48f..445b0a3 100755 --- a/kcc.py +++ b/kcc.py @@ -63,24 +63,10 @@ if getattr(sys, 'frozen', False): except: pass -from kindlecomicconverter.shared import dependencyCheck -dependencyCheck(3) - from multiprocessing import freeze_support -from kindlecomicconverter import KCC_gui +from kindlecomicconverter.startup import start if __name__ == "__main__": freeze_support() - 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]) - 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]) - sys.exit(KCCAplication.exec_()) + start() + |