Files
OpenUxAS-SoI/examples/99_Tasks/WatchTask/runUxAS_WatchTask.py
2018-10-01 12:38:42 -04:00

21 lines
430 B
Python
Executable File

#!/usr/bin/env python
import os
import shutil
import subprocess
uxasPath = '../../../../build/uxas'
args = ["-cfgPath", "../cfg_WatchTask.xml"]
runFolder = "RUNDIR_WatchTask"
currentDir = os.path.dirname(os.path.realpath(__file__))
currentDir = os.getcwd()
runPath = os.path.join(currentDir,runFolder)
if(os.path.isdir(runPath)):
shutil.rmtree(runPath)
os.mkdir(runPath)
os.chdir(runPath)
subprocess.call([uxasPath] + args)