mirror of
https://github.com/ciromattia/kcc
synced 2026-07-02 19:15:28 +00:00
Tweaked KindleGen warning
This commit is contained in:
+7
-3
@@ -575,7 +575,7 @@ class KCCGUI(KCC_ui.Ui_KCC):
|
|||||||
dnames = ""
|
dnames = ""
|
||||||
for dname in dnames:
|
for dname in dnames:
|
||||||
if unicode(dname) != "":
|
if unicode(dname) != "":
|
||||||
if sys.platform == 'win32':
|
if sys.platform.startswith('win'):
|
||||||
dname = dname.replace('/', '\\')
|
dname = dname.replace('/', '\\')
|
||||||
self.lastPath = os.path.abspath(os.path.join(unicode(dname), os.pardir))
|
self.lastPath = os.path.abspath(os.path.join(unicode(dname), os.pardir))
|
||||||
GUI.JobList.addItem(dname)
|
GUI.JobList.addItem(dname)
|
||||||
@@ -1105,8 +1105,12 @@ class KCCGUI(KCC_ui.Ui_KCC):
|
|||||||
else:
|
else:
|
||||||
self.KindleGen = False
|
self.KindleGen = False
|
||||||
formats = ['EPUB', 'CBZ']
|
formats = ['EPUB', 'CBZ']
|
||||||
self.addMessage('Cannot find <a href="http://www.amazon.com/gp/feature.html?ie=UTF8&docId='
|
if sys.platform.startswith('win'):
|
||||||
'1000765211">kindlegen</a> in PATH! MOBI creation will be disabled.', 'warning')
|
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 = Popen('unrar', stdout=PIPE, stderr=STDOUT, shell=True)
|
||||||
rarExitCode = rarExitCode.wait()
|
rarExitCode = rarExitCode.wait()
|
||||||
if rarExitCode == 0 or rarExitCode == 7:
|
if rarExitCode == 0 or rarExitCode == 7:
|
||||||
|
|||||||
Reference in New Issue
Block a user