mirror of
https://github.com/KolibriOS/kolibrios.git
synced 2024-11-29 04:03:09 +03:00
46c1e2241b
git-svn-id: svn://kolibrios.org@9393 a494cfbc-eb01-0410-851d-a64ba20cac60
24 lines
558 B
Python
Executable File
24 lines
558 B
Python
Executable File
#!/usr/bin/python3
|
|
import os
|
|
import sys
|
|
import shutil
|
|
|
|
import workspace.build
|
|
|
|
# Remove workspace folder
|
|
shutil.rmtree("workspace", ignore_errors = True)
|
|
|
|
# Remove tup database
|
|
shutil.rmtree(".tup", ignore_errors = True)
|
|
|
|
# Make build.py remove the stuff it built
|
|
workspace.build.clean()
|
|
|
|
# Remove files copied from _tools/workspace
|
|
tools = os.path.dirname(os.path.realpath(__file__))
|
|
tools_workspace = os.path.join(tools, "workspace")
|
|
for copied_script in os.listdir(tools_workspace):
|
|
if os.path.exists(copied_script):
|
|
os.remove(copied_script)
|
|
|