Delete progress folders when using --rerun-all.

Former-commit-id: b87fac7ddc
pull/1161/head
Alex Hagiopol 2016-07-18 15:02:37 -07:00
rodzic a85b8a6895
commit ecef7713a0
2 zmienionych plików z 12 dodań i 0 usunięć

0
configure.sh 100644 → 100755
Wyświetl plik

12
run.py
Wyświetl plik

@ -6,6 +6,7 @@ from opendm import system
import sys
import ecto
import os
from scripts.odm_app import ODMApp
@ -26,6 +27,17 @@ if __name__ == '__main__':
if args.project_path is None:
usage()
#If user asks to rerun everything, delete all of the progress directories.
if args.rerun_all:
os.system("rm -rf "
+ args.project_path + "images_resize/ "
+ args.project_path + "odm_georeferencing/ "
+ args.project_path + "odm_meshing/ "
+ args.project_path + "odm_orthophoto/ "
+ args.project_path + "odm_texturing/ "
+ args.project_path + "opensfm/ "
+ args.project_path + "pmvs/")
# create an instance of my App BlackBox
# internally configure all tasks
app = ODMApp(args=args)