emscripten/tools/emmakenxx.py

19 строки
429 B
Python
Исходник Обычный вид История

#!/usr/bin/env python2
'''
see emmaken.py
'''
import os, subprocess, sys
2012-01-31 02:10:57 +04:00
__rootpath__ = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
def path_from_root(*pathelems):
2011-10-05 22:12:45 +04:00
return os.path.join(__rootpath__, *pathelems)
2012-01-31 02:10:57 +04:00
sys.path += [path_from_root('')]
from tools.shared import *
emmaken = path_from_root('tools', 'emmaken.py')
os.environ['EMMAKEN_CXX'] = '1'
exit(subprocess.call([PYTHON, emmaken] + sys.argv[1:]))