Skip to content

Commit

Permalink
Fix upload script
Browse files Browse the repository at this point in the history
  • Loading branch information
ascpial committed Aug 3, 2024
1 parent ea79875 commit 3b67db4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion distribute.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,8 @@ def create_archive(destination: str, files: list) -> zipfile.ZipFile:
}
files = get_resourcepack_files(configuration.get("folder", "."))
target = configuration.get("destination", "./output/ComputerCreate.zip")
os.makedirs(os.path.dirname(target), exist_ok=True)
if os.path.dirname(target) != "":
os.makedirs(os.path.dirname(target), exist_ok=True)
create_archive(target, files)
print(
f"📄 Zip created at {configuration.get('destination', 'output/ComputerCreate.zip')}"
Expand Down

0 comments on commit 3b67db4

Please sign in to comment.