From cbbd67d9f6bcf48b44c5825783152d7c594f2b2c Mon Sep 17 00:00:00 2001 From: Harrison Deng Date: Sun, 24 Apr 2022 23:10:27 -0500 Subject: [PATCH] Shop module loading script now deletes previous shop path. --- scripts/load_shop_modules.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/load_shop_modules.py b/scripts/load_shop_modules.py index 3be5024..d689066 100644 --- a/scripts/load_shop_modules.py +++ b/scripts/load_shop_modules.py @@ -15,8 +15,8 @@ EXTS = ["deps.json", "dll"] def load(): os.chdir(os.path.dirname(os.path.realpath(__file__))) os.chdir("..") - if (not os.path.isdir(os.path.abspath(os.path.dirname(PROPS_SHOP_MODULES_DST)))): - os.makedirs(os.path.dirname(PROPS_SHOP_MODULES_DST)) + shutil.rmtree(os.path.dirname(PROPS_SHOP_MODULES_DST)) + os.makedirs(os.path.dirname(PROPS_SHOP_MODULES_DST)) for ext in EXTS: results = glob(os.path.join(PROP_SHOP_MODULES_DIR, SHOP_MODULE_GLOB.format(net_ver=NET_VER, ext=ext)))