Skip to content

Commit 1ab5607

Browse files
committed
builder deletes temp files after it's done
1 parent dd59687 commit 1ab5607

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

FT_Builder.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -355,6 +355,18 @@ def main():
355355
DirPrefab,
356356
)
357357

358+
359+
BuildFolder = os.path.abspath(os.path.join(os.path.dirname(__file__), 'build'))
360+
if os.path.exists(BuildFolder):
361+
delete_files_in_directory(BuildFolder)
362+
363+
if os.path.isfile(os.path.abspath(os.path.join(os.path.dirname(__file__), "! " + NameCustomAvatarDir + "Patcher.py"))):
364+
os.remove(os.path.abspath(os.path.join(os.path.dirname(__file__), "! " + NameCustomAvatarDir + "Patcher.py")))
365+
366+
if os.path.isfile(os.path.abspath(os.path.join(os.path.dirname(__file__), "! " + NameCustomAvatarDir + "Patcher.spec"))):
367+
os.remove(os.path.abspath(os.path.join(os.path.dirname(__file__), "! " + NameCustomAvatarDir + "Patcher.spec")))
368+
369+
358370

359371
print_ascii_Ready()
360372

0 commit comments

Comments
 (0)