mirror of
https://github.com/ciromattia/kcc
synced 2025-12-13 17:56:30 +00:00
remove kindlegen location UI
This commit is contained in:
@@ -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