mirror of
https://github.com/ksherlock/ample.git
synced 2024-10-31 15:04:56 +00:00
18 lines
332 B
Python
18 lines
332 B
Python
|
|
import subprocess
|
|
|
|
|
|
def run(*args):
|
|
|
|
env = {'DYLD_FALLBACK_FRAMEWORK_PATH': '../embedded'}
|
|
path = "../embedded/mame64"
|
|
path = "../mame/mame-x64"
|
|
|
|
st = subprocess.run([path, *args], capture_output=True, env=env, text=True, check=True)
|
|
|
|
#if st.returncode != 0:
|
|
# print("mame error: {}".format(m))
|
|
# exit(1)
|
|
|
|
return st.stdout
|