Skip to content

Commit dc26278

Browse files
committed
[noci] Merge branch 'base' into test
2 parents 58443e0 + 2384e97 commit dc26278

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/assemble_unsup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ def main():
1616
pack_toml_file = repo_root / "pack" / "pack.toml"
1717
generated_dir = common.get_generated_dir()
1818
repo_name = os.path.basename(repo_root.resolve())
19-
event_type = constants_file["event_type"]
19+
constants = common.jsonc_at_home(common.read_file(constants_file))
20+
event_type = constants["event_type"]
2021

2122
for (url, ext) in [
2223
[f"https://{repo_name}.{event_type}.pack.modgarden.net/pack.toml", "Build"],
@@ -26,7 +27,6 @@ def main():
2627
print(f"Generating packs for {url}")
2728

2829
packwiz_info = common.parse_packwiz(pack_toml_file)
29-
constants = common.jsonc_at_home(common.read_file(constants_file))
3030

3131
# Create prism zip
3232
prism = generated_dir / f"{packwiz_info.safe_name()}-{ext}.zip"

0 commit comments

Comments
 (0)