mirror of
https://github.com/Faraphel/Atlas-Install.git
synced 2025-07-03 19:28:25 +02:00
only remove auto-add dir if it exist
This commit is contained in:
parent
ae5e3e5987
commit
06c3a5174c
1 changed files with 1 additions and 1 deletions
|
@ -38,7 +38,7 @@ def patch_file(self):
|
||||||
for file in glob.glob(self.path_mkwf+"/files/Scene/UI/MenuSingle_?.szs"):
|
for file in glob.glob(self.path_mkwf+"/files/Scene/UI/MenuSingle_?.szs"):
|
||||||
self.patch_bmg(file)
|
self.patch_bmg(file)
|
||||||
|
|
||||||
shutil.rmtree("./file/auto-add")
|
if os.path.exists("./file/auto-add"): shutil.rmtree("./file/auto-add")
|
||||||
if not(os.path.exists(self.path_mkwf + "/tmp/")): os.makedirs(self.path_mkwf + "/tmp/")
|
if not(os.path.exists(self.path_mkwf + "/tmp/")): os.makedirs(self.path_mkwf + "/tmp/")
|
||||||
subprocess.run(["./tools/szs/wszst", "AUTOADD", get_nodir(self.path_mkwf) + "/files/Race/Course/",
|
subprocess.run(["./tools/szs/wszst", "AUTOADD", get_nodir(self.path_mkwf) + "/files/Race/Course/",
|
||||||
"--DEST", get_nodir(self.path_mkwf) + "/tmp/auto-add/"],
|
"--DEST", get_nodir(self.path_mkwf) + "/tmp/auto-add/"],
|
||||||
|
|
Loading…
Reference in a new issue