Skip to content
This repository has been archived by the owner on Oct 27, 2024. It is now read-only.

Commit

Permalink
Added main function where user can choose file
Browse files Browse the repository at this point in the history
  • Loading branch information
tygoee committed Aug 15, 2023
1 parent 0260aa6 commit bbaf81b
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,4 +137,12 @@ def install(manifest_file: str, install_path: str = path.dirname(path.realpath(_
'mods', []), manifest.get('resourcepacks', []))


install(path.join(path.dirname(path.realpath(__file__)), 'example-manifest.json'))
if __name__ == '__main__':
if (mcm_location := input("Manifest file location (default: example-manifest.json): ")) == '':
mcm_location = path.join(path.dirname(
path.realpath(__file__)), 'example-manifest.json')

if (install_location := input("Install location (default: current directory): ")) == '':
install(mcm_location)
else:
install(mcm_location, install_location)

0 comments on commit bbaf81b

Please sign in to comment.