From 8346f2573664ac585b271754115f43535d570171 Mon Sep 17 00:00:00 2001 From: jimmy Date: Sat, 12 Jun 2021 10:46:02 +0000 Subject: [PATCH] Change repourl --- src/pack.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/pack.py b/src/pack.py index a4e7543..cc09bb0 100644 --- a/src/pack.py +++ b/src/pack.py @@ -11,8 +11,7 @@ class Pack: def __init__(self): load_dotenv() self.repourl = os.environ.get("RESOURCE_PACK_URL") - command = "git clone " + self.repourl - self.dir = re.split("/|\.", self.repourl)[1] + command = "git clone " + self.repourl + " resourcepack" status = os.system(command) print(status) @@ -26,16 +25,15 @@ class Pack: shutil.rmtree(self.dir) def pull(self) -> None: - os.system("git -C {} pull origin master".format(self.dir)) def collate(self) -> None: if os.path.exists("pack"): shutil.rmtree("pack") os.mkdir("pack") - shutil.copytree(self.dir+"/assets", "pack/assets") - shutil.copy("ResourcePack/pack.mcmeta", "pack/pack.mcmeta") - shutil.copy("ResourcePack/pack.png", "pack/pack.png") + shutil.copytree("resourcepack/assets", "pack/assets") + shutil.copy("resourcepack/pack.mcmeta", "pack/pack.mcmeta") + shutil.copy("resourcepack/pack.png", "pack/pack.png") def compress(self) -> None: