Skip to content
This repository has been archived by the owner on May 15, 2024. It is now read-only.

Commit

Permalink
Generated zip is created directly at the target location instead of t…
Browse files Browse the repository at this point in the history
…he current directory
  • Loading branch information
MB3hel committed Oct 22, 2022
1 parent 501eabf commit 3a2562d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion res/version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.1.0-alpha1
1.1.0-alpha2
3 changes: 1 addition & 2 deletions src/importer.py
Original file line number Diff line number Diff line change
Expand Up @@ -332,9 +332,8 @@ def url_getter() -> Tuple[int, str]:
self.update_progress.emit("Zipping generated files...")
try:
overrides_dir = os.path.join(tempdir, "overrides")
archive = shutil.make_archive(os.path.basename(filename)[:-4], format="zip",
shutil.make_archive(filename[:-4], format="zip",
root_dir=overrides_dir, base_dir=".")
shutil.move(archive, filename)
except Exception as e:
traceback.print_exc()
raise e
Expand Down

0 comments on commit 3a2562d

Please sign in to comment.