Skip to content

Commit

Permalink
Make sure that KindleGen have execute permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
AcidWeb committed Jun 5, 2014
1 parent b6facda commit c976b06
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions kcc/KCC_gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -1188,6 +1188,11 @@ def __init__(self, KCCAplication, KCCWindow):
self.addMessage('Since you are new user of <b>KCC</b> please see few '
'<a href="https://github.com/ciromattia/kcc/wiki/Important-tips">important tips</a>.',
'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
Expand Down

0 comments on commit c976b06

Please sign in to comment.