update build: remove folders from previous build
This commit is contained in:
6
build.py
6
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()
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user