Files
OpenUxAS-SoI/examples/01_HelloWorld/runUxAS_HelloWorld.py
2018-09-22 08:47:43 -04:00

21 lines
403 B
Python
Executable File

#! /usr/bin/env python3
import os
from subprocess import call
import platform
osType = platform.system()
print('** osType[{}] **'.format(osType))
bin = '../../build/uxas'
cfgFile = 'cfg_HelloWorld.xml'
if osType =='Linux':
pass
elif osType =='Darwin':
pass
elif osType =='Windows':
bin = '..\\..\\build\\uxas.exe'
cmd = '{0} -cfgPath {1}'.format(bin,cfgFile)
call(cmd,shell=True)