1
0
mirror of https://github.com/ciromattia/kcc synced 2025-12-13 01:36:27 +00:00

add more 7z Windows locations

This commit is contained in:
Alex Xu
2024-03-12 10:08:03 -07:00
parent e0e6606736
commit 0981ec3c6d

2
kcc.py
View File

@@ -51,6 +51,8 @@ elif sys.platform.startswith('win'):
os.path.expandvars('%LOCALAPPDATA%\\Amazon\\KC2'),
os.path.expandvars('%LOCALAPPDATA%\\Amazon\\Kindle Previewer 3\\lib\\fc\\bin\\'),
'C:\\Program Files\\7-Zip',
'D:\\Program Files\\7-Zip',
'E:\\Program Files\\7-Zip',
]
if getattr(sys, 'frozen', False):
os.environ['PATH'] += os.pathsep + os.pathsep.join(win_paths)