28 lines
687 B
Python
28 lines
687 B
Python
|
|
from glob import glob
|
|
import os
|
|
import shutil
|
|
|
|
|
|
PROP_SHOP_MODULES_DIR = "./Props.Shop/"
|
|
PROPS_SHOP_MODULES_DST = "./Props/shops/."
|
|
NET_VER = "net6.0"
|
|
|
|
SHOP_MODULE_GLOB = "**/bin/Release/{net_ver}/publish/*.{ext}"
|
|
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)
|
|
for ext in EXTS:
|
|
results = glob(os.path.join(PROP_SHOP_MODULES_DIR,
|
|
SHOP_MODULE_GLOB.format(net_ver=NET_VER, ext=ext)))
|
|
for result in results:
|
|
shutil.copy(result, PROPS_SHOP_MODULES_DST)
|
|
|
|
|
|
if __name__ == "__main__":
|
|
load()
|