1
0
mirror of https://github.com/ciromattia/kcc synced 2025-12-13 09:46:25 +00:00

Display kindlegen path (#571)

* add %LOCALAPPDATA%\\Amazon\\KC2

* fix kindlegen link

* expandvars

* remove link

* print where kindlegen

* adjust where command

* remove platform
This commit is contained in:
Alex Xu
2023-08-07 10:53:38 -07:00
committed by GitHub
parent f73d889b6e
commit 77afa77d32
2 changed files with 9 additions and 1 deletions

3
kcc.py
View File

@@ -46,7 +46,8 @@ if sys.platform.startswith('darwin'):
os.chdir(os.path.dirname(os.path.abspath(__file__)))
elif sys.platform.startswith('win'):
win_paths = [
'%LOCALAPPDATA%\\Amazon\\Kindle Previewer 3\\lib\\fc\\bin\\',
os.path.expandvars('%LOCALAPPDATA%\\Amazon\\Kindle Previewer 3\\lib\\fc\\bin\\'),
os.path.expandvars('%LOCALAPPDATA%\\Amazon\\KC2'),
'C:\\Program Files\\7-Zip',
]
if getattr(sys, 'frozen', False):