interim commit
This commit is contained in:
parent
71c8ea7bbd
commit
36b0cc18b0
1 changed files with 3 additions and 2 deletions
|
|
@ -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.")
|
||||
|
|
|
|||
Loading…
Reference in a new issue