interim commit

This commit is contained in:
oitsjustjose 2025-10-08 11:38:29 -05:00
commit 36b0cc18b0

View file

@ -5,6 +5,7 @@ import shutil
import subprocess
import sys
from pathlib import Path
from typing import Any
from zipfile import ZipFile
import toml
@ -19,7 +20,7 @@ RESOURCE_PACKS_DIR = PACK_UNZIP_PATH.joinpath("minecraft").joinpath("resourcepac
MMC_EXPORT_CONFIG_PATH = THIS_DIR.joinpath("config.toml").resolve()
def print(obj):
def print(obj: Any):
"""override"""
log_nm_base = sys.argv[1].split("\\")[-1]
with open(f"./{log_nm_base}.log", "a+", encoding="utf-8") as log_handle:
@ -148,7 +149,7 @@ def main() -> None:
THIS_DIR,
],
shell=True,
)
).wait()
if status != 0:
print("Failed to convert MMC pack to Curse and/or Modrinth. See above log.")