diff options
author | Cara Salter <cara@devcara.com> | 2023-02-16 13:44:11 -0500 |
---|---|---|
committer | Cara Salter <cara@devcara.com> | 2023-10-30 14:32:00 -0400 |
commit | a84bb57691bc8b5ef7522acd087ff8d3d271ac90 (patch) | |
tree | 5fdafbccf38d36e44851197e7ea91b3416dc2252 /modpackman.py | |
parent | 8678792e58cb4b3450240b7e226d300b7d7902bf (diff) | |
download | modpackman-a84bb57691bc8b5ef7522acd087ff8d3d271ac90.tar.gz modpackman-a84bb57691bc8b5ef7522acd087ff8d3d271ac90.zip |
Update config installer
Diffstat (limited to 'modpackman.py')
-rwxr-xr-x | modpackman.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/modpackman.py b/modpackman.py index 802ba7a..180812f 100755 --- a/modpackman.py +++ b/modpackman.py @@ -68,8 +68,7 @@ def install(): mc_config_folder = os.path.join(config['pack']['location'], 'config') if not os.path.exists(mc_config_folder): os.mkdir(mc_config_folder) - for cfg in os.listdir('config'): - shutil.copyfile(os.path.join('config', cfg), os.path.join(mc_config_folder, cfg)) + shutil.copytree('config/', mc_config_folder, dirs_exist_ok=True) print() print("Finished installing mods!") |