From a84bb57691bc8b5ef7522acd087ff8d3d271ac90 Mon Sep 17 00:00:00 2001 From: Cara Salter Date: Thu, 16 Feb 2023 13:44:11 -0500 Subject: Update config installer --- modpackman.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'modpackman.py') 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!") -- cgit v1.2.3