Shop module loading script now deletes previous shop path.
This commit is contained in:
parent
8dc2ff21c9
commit
cbbd67d9f6
@ -15,8 +15,8 @@ EXTS = ["deps.json", "dll"]
|
|||||||
def load():
|
def load():
|
||||||
os.chdir(os.path.dirname(os.path.realpath(__file__)))
|
os.chdir(os.path.dirname(os.path.realpath(__file__)))
|
||||||
os.chdir("..")
|
os.chdir("..")
|
||||||
if (not os.path.isdir(os.path.abspath(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))
|
os.makedirs(os.path.dirname(PROPS_SHOP_MODULES_DST))
|
||||||
for ext in EXTS:
|
for ext in EXTS:
|
||||||
results = glob(os.path.join(PROP_SHOP_MODULES_DIR,
|
results = glob(os.path.join(PROP_SHOP_MODULES_DIR,
|
||||||
SHOP_MODULE_GLOB.format(net_ver=NET_VER, ext=ext)))
|
SHOP_MODULE_GLOB.format(net_ver=NET_VER, ext=ext)))
|
||||||
|
Loading…
Reference in New Issue
Block a user