aboutsummaryrefslogtreecommitdiff
path: root/modpackman.py
diff options
context:
space:
mode:
Diffstat (limited to 'modpackman.py')
-rwxr-xr-xmodpackman.py3
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!")