<gh_stars>1-10
#! /usr/bin/env python3
import os
from subprocess import call 

def callWithShell(cmd):
    call(cmd, shell=True)

# 1 - change to the volume with OpenUxAS code :
os.chdir("/tmp_build")

# if `build` exists, then just run Ninja
if(os.path.isdir("build")):
    callWithShell("meson build --buildtype=release")

# 3 - compile the code
callWithShell("ninja -C build test")
#! /usr/bin/env python3
import os
from subprocess import call 

def callWithShell(cmd):
    call(cmd, shell=True)

# 1 - change to the volume with OpenUxAS code :
os.chdir("/tmp_build")

# if `build` exists, then just run Ninja
if(os.path.isdir("build")):
    callWithShell("meson build --buildtype=release")

# 3 - compile the code
callWithShell("ninja -C build test")
#! /usr/bin/env python3 # 1 - change to the volume with OpenUxAS code : # if `build` exists, then just run Ninja # 3 - compile the code