Files
OpenUxAS-SoI/examples/99_Tasks/LoiterTask/runAMASE_LoiterTask.py

19 lines
597 B
Python
Executable File

#!/usr/bin/env python
import os
import shutil
import subprocess
app = "java"
scenarioPath = "../../OpenUxAS/examples/99_Tasks/LoiterTask/Scenario_LoiterTask.xml"
runAmaseArgs = ["java", "-Xmx2048m", "-splash:./data/amase_splash.png", "-classpath", "./dist/*:./lib/*", "avtas.app.Application", "--config", "config/amase", "--scenario", scenarioPath]
currentDir = os.path.dirname(os.path.realpath(__file__))
amaseRelativePath = os.path.join("..","..","..","..","OpenAMASE","OpenAMASE")
amasePath = os.path.join(currentDir,amaseRelativePath)
os.chdir(amasePath);
subprocess.call(runAmaseArgs)