diff --git a/scripts/load_shop_modules.py b/scripts/load_shop_modules.py index e8d4d67..3be5024 100644 --- a/scripts/load_shop_modules.py +++ b/scripts/load_shop_modules.py @@ -15,7 +15,8 @@ EXTS = ["deps.json", "dll"] def load(): os.chdir(os.path.dirname(os.path.realpath(__file__))) os.chdir("..") - os.makedirs(os.path.dirname(PROPS_SHOP_MODULES_DST), exist_ok=True) + if (not os.path.isdir(os.path.abspath(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)))