diff --git a/kcc/KCC_gui.py b/kcc/KCC_gui.py index b505e2d..504d192 100644 --- a/kcc/KCC_gui.py +++ b/kcc/KCC_gui.py @@ -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 kindlegen in PATH! MOBI creation will be disabled.', 'warning') + if sys.platform.startswith('win'): + self.addMessage('Cannot find ' + 'kindlegen in KCC directory! MOBI creation will be disabled.', 'warning') + else: + self.addMessage('Cannot find ' + 'kindlegen 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: