Files
OpenUxAS-SoI/examples/99_Tasks/PatternSearchTask/runUxAS_PatternSearchTask.py

21 lines
446 B
Python
Raw Permalink Normal View History

#!/usr/bin/env python
import os
import shutil
import subprocess
uxasPath = '../../../../build/uxas'
args = ["-cfgPath", "../cfg_PatternSearchTask.xml"]
runFolder = "RUNDIR_PatternSearchTask"
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)