2022-04-24 05:01:55 +00:00
|
|
|
|
|
|
|
from glob import glob
|
|
|
|
import os
|
|
|
|
import shutil
|
|
|
|
|
|
|
|
|
2022-04-24 05:12:32 +00:00
|
|
|
PROP_SHOP_MODULES_DIR = "./Props.Shop/"
|
|
|
|
PROPS_SHOP_MODULES_DST = "./Props/shops/"
|
2022-04-24 05:01:55 +00:00
|
|
|
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("..")
|
|
|
|
for ext in EXTS:
|
2022-04-24 05:12:32 +00:00
|
|
|
results = glob(os.path.join(PROP_SHOP_MODULES_DIR,
|
|
|
|
SHOP_MODULE_GLOB.format(net_ver=NET_VER, ext=ext)))
|
2022-04-24 05:01:55 +00:00
|
|
|
for result in results:
|
2022-04-24 05:12:32 +00:00
|
|
|
shutil.copy(result, os.path.abspath(PROPS_SHOP_MODULES_DST))
|
2022-04-24 05:01:55 +00:00
|
|
|
|
|
|
|
|
|
|
|
if __name__ == "__main__":
|
|
|
|
load()
|