remove kindlegen location UI
This commit is contained in:
1 parent
89d887710e
commit
915c9389ef
1 file changed
-6
@@ -852,12 +852,6 @@ class KCCGUI(KCC_ui.Ui_mainWindow):
|
|||||||
self.addMessage('Your <a href="https://www.amazon.com/b?node=23496309011">KindleGen</a>'
|
self.addMessage('Your <a href="https://www.amazon.com/b?node=23496309011">KindleGen</a>'
|
||||||
' is outdated! MOBI conversion might fail.', 'warning')
|
' is outdated! MOBI conversion might fail.', 'warning')
|
||||||
break
|
break
|
||||||
where_command = 'where kindlegen.exe'
|
|
||||||
if os.name == 'posix':
|
|
||||||
where_command = 'which kindlegen'
|
|
||||||
process = subprocess.run(where_command, stdout=PIPE, stderr=STDOUT, stdin=PIPE, shell=True)
|
|
||||||
locations = process.stdout.decode('utf-8').split('\n')
|
|
||||||
self.addMessage(f"<b>KindleGen Found:</b> {locations[0]}", 'info')
|
|
||||||
else:
|
else:
|
||||||
self.kindleGen = False
|
self.kindleGen = False
|
||||||
if startup:
|
if startup:
|
||||||
|
|||||||
Reference in new issue
Block a user