Subversion Repositories Kolibri OS

Rev

Rev 9379 | Blame | Compare with Previous | Last modification | View Log | RSS feed

  1. #!/usr/bin/python3
  2. import os
  3. import sys
  4. import shutil
  5.  
  6. import workspace.build
  7.  
  8. # Remove workspace folder
  9. shutil.rmtree("workspace", ignore_errors = True)
  10.  
  11. # Remove tup database
  12. shutil.rmtree(".tup", ignore_errors = True)
  13.  
  14. # Make build.py remove the stuff it built
  15. workspace.build.clean()
  16.  
  17. # Remove files copied from _tools/workspace
  18. tools = os.path.dirname(os.path.realpath(__file__))
  19. tools_workspace = os.path.join(tools, "workspace")
  20. for copied_script in os.listdir(tools_workspace):
  21.     if os.path.exists(copied_script):
  22.         os.remove(copied_script)
  23.  
  24.