Skip to content

Commit

Permalink
only remove auto-add dir if it exist
Browse files Browse the repository at this point in the history
  • Loading branch information
Faraphel committed Jun 16, 2021
1 parent ae5e3e5 commit 06c3a51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/patch_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def func():
for file in glob.glob(self.path_mkwf+"/files/Scene/UI/MenuSingle_?.szs"):
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/")
subprocess.run(["./tools/szs/wszst", "AUTOADD", get_nodir(self.path_mkwf) + "/files/Race/Course/",
"--DEST", get_nodir(self.path_mkwf) + "/tmp/auto-add/"],
Expand Down

0 comments on commit 06c3a51

Please sign in to comment.