Skip to content

Commit

Permalink
Fixed a paths problems with custom file assets
Browse files Browse the repository at this point in the history
  • Loading branch information
Gemmstone committed Mar 21, 2024
1 parent 9ed9f9d commit 2b708bc
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,9 +253,13 @@ def download_app(self, platform_name):
with zipfile.ZipFile(os.path.join(exe_dir, 'update.zip'), 'r') as zip_ref:
if platform_name == "Python":
zip_file_name = zip_ref.namelist()[0]
zip_ref.extractall(exe_dir, members=[member for member in zip_ref.namelist() if
member.startswith(zip_file_name) and len(member) > len(
zip_file_name) + 1])
zip_ref.extractall(
exe_dir,
members=[
member for member in zip_ref.namelist()
if member.startswith(zip_file_name) and len(member) > len(zip_file_name) + 1
]
)
else:
zip_ref.extractall(exe_dir)
extracting_dialog.accept()
Expand Down

0 comments on commit 2b708bc

Please sign in to comment.