From c976b06413aec26cf2a34c292277ca908ddb68ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Jastrz=C4=99bski?= Date: Thu, 5 Jun 2014 06:53:15 +0200 Subject: [PATCH] Make sure that KindleGen have execute permissions --- kcc/KCC_gui.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/kcc/KCC_gui.py b/kcc/KCC_gui.py index d1ac484..1102067 100644 --- a/kcc/KCC_gui.py +++ b/kcc/KCC_gui.py @@ -1188,6 +1188,11 @@ class KCCGUI(KCC_ui.Ui_KCC): self.addMessage('Since you are new user of KCC please see few ' 'important tips.', 'info') + if not sys.platform.startswith('win'): + try: + os.chmod('/usr/local/bin/kindlegen', 0o755) + except Exception: + pass kindleGenExitCode = Popen('kindlegen -locale en', stdout=PIPE, stderr=STDOUT, shell=True) if kindleGenExitCode.wait() == 0: self.KindleGen = True