From 3d1560953614b95edd199582a604358ae0496594 Mon Sep 17 00:00:00 2001 From: WorldTeacher Date: Thu, 3 Jul 2025 07:21:16 +0200 Subject: [PATCH] update build: remove folders from previous build --- build.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/build.py b/build.py index ca74144..0313ef8 100644 --- a/build.py +++ b/build.py @@ -1,10 +1,14 @@ import os - +import shutil with open(".version", "r") as version_file: version = version_file.read().strip() print("Building the project...") +# clear dist directory +if os.path.exists("dist"): + shutil.rmtree("dist") + os.makedirs("dist") build = input("Include console in build? (y/n): ").strip().lower()