1
0
mirror of https://github.com/ciromattia/kcc synced 2026-01-09 23:09:43 +00:00

Tweaked KindleGen warning

This commit is contained in:
Paweł Jastrzębski
2013-12-29 17:13:17 +01:00
parent d016bade8e
commit 7656a85708

View File

@@ -575,7 +575,7 @@ class KCCGUI(KCC_ui.Ui_KCC):
dnames = ""
for dname in dnames:
if unicode(dname) != "":
if sys.platform == 'win32':
if sys.platform.startswith('win'):
dname = dname.replace('/', '\\')
self.lastPath = os.path.abspath(os.path.join(unicode(dname), os.pardir))
GUI.JobList.addItem(dname)
@@ -1105,8 +1105,12 @@ class KCCGUI(KCC_ui.Ui_KCC):
else:
self.KindleGen = False
formats = ['EPUB', 'CBZ']
self.addMessage('Cannot find <a href="http://www.amazon.com/gp/feature.html?ie=UTF8&docId='
'1000765211">kindlegen</a> in PATH! MOBI creation will be disabled.', 'warning')
if sys.platform.startswith('win'):
self.addMessage('Cannot find <a href="http://www.amazon.com/gp/feature.html?ie=UTF8&docId=1000765211">'
'kindlegen</a> in KCC directory! MOBI creation will be disabled.', 'warning')
else:
self.addMessage('Cannot find <a href="http://www.amazon.com/gp/feature.html?ie=UTF8&docId=1000765211">'
'kindlegen</a> in PATH! MOBI creation will be disabled.', 'warning')
rarExitCode = Popen('unrar', stdout=PIPE, stderr=STDOUT, shell=True)
rarExitCode = rarExitCode.wait()
if rarExitCode == 0 or rarExitCode == 7: