changed path for 7zip on Windows

This commit is contained in:
DYefremov
2022-04-01 12:12:02 +03:00
parent 39a592fd4d
commit ac1725b3ef

View File

@@ -136,7 +136,7 @@ class PiconsCzDownloader:
raise PiconsError("7-zip [7z] archiver not found!")
if IS_WIN:
exe = f"C:{os.sep}Program Files{os.sep}7-Zip{os.sep}{exe}.exe"
exe = f"{exe}.exe" if GTK_PATH else f"C:{os.sep}Program Files{os.sep}7-Zip{os.sep}{exe}.exe"
if not os.path.isfile(exe):
raise PiconsError("7-Zip executable not found!")