Wallpaper-Changer/build.py

20 lines
726 B
Python
Raw Permalink Normal View History

2020-12-05 14:56:30 +00:00
from subprocess import call, Popen, DETACHED_PROCESS
2020-12-03 01:02:21 +00:00
from shutil import rmtree
from os.path import isdir
2020-12-05 14:56:30 +00:00
if isdir(".\\build"):
print("Removing .\\build")
2020-12-03 01:02:21 +00:00
rmtree(".\\build")
2020-12-05 14:56:30 +00:00
if isdir(".\\noui_build"):
print("Removing .\\noui_build")
rmtree(".\\noui_build")
Popen(["powershell", """python3 noui_setup.py build; python3 -c "input('\\n\\n________________________________\\nBUILD FINISHED\\n¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯\\n\\n')\""""], shell=True, creationflags=DETACHED_PROCESS)
2020-12-03 01:02:21 +00:00
call("python3 setup.py build", shell=True)
print(
"""
________________________________
BUILD FINISHED
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
"""
)
input()