load_shop_modules.py now removes anything at the shop path.
This commit is contained in:
parent
cbbd67d9f6
commit
7306c0ce86
@ -15,7 +15,12 @@ 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 (os.path.exists(os.path.dirname(PROPS_SHOP_MODULES_DST))):
|
||||||
|
if (not os.path.isdir(os.path.dirname(PROPS_SHOP_MODULES_DST))):
|
||||||
|
os.remove(os.path.dirname(PROPS_SHOP_MODULES_DST))
|
||||||
|
else:
|
||||||
shutil.rmtree(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,
|
||||||
|
Loading…
Reference in New Issue
Block a user