You've already forked OpenUxAS-SoI
mirror of
https://github.com/AdaCore/OpenUxAS-SoI.git
synced 2026-02-12 13:04:49 -08:00
21 lines
430 B
Python
Executable File
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)
|