Skip to content

Commit

Permalink
Update test.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Advik-B committed Jan 16, 2023
1 parent 24f3015 commit 73cec51
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,16 @@ def download(url: str, chunk_size: int = 1024):

print(f"Finished downloading {fname}")

def mkdir(path: str):
if not os.path.exists(path):
os.mkdir(path)


def main():
if not os.path.exists("mods"):
os.mkdir("mods")
if len(argv) < 2:
print("Please specify a modpack file")
return
mkdir("mods")
console = Console()

with codecs.open(argv[1], "r", encoding="utf-8") as f:
Expand Down

0 comments on commit 73cec51

Please sign in to comment.