12EMSDK_ROOT = os.path.abspath(os.path.join(__file__,
'..',
'..',
'prebuilts',
'emsdk'))
14EMSDK_PATH = os.path.join(EMSDK_ROOT,
'emsdk.py')
17EMSDK_VERSION =
'3.1.44'
22 subprocess.check_call([sys.executable, EMSDK_PATH,
'install', EMSDK_VERSION],
23 stdout=subprocess.DEVNULL)
24 except subprocess.CalledProcessError:
25 print(
'Failed to install emsdk')
28 subprocess.check_call([sys.executable, EMSDK_PATH,
'activate', EMSDK_VERSION],
29 stdout=subprocess.DEVNULL)
30 except subprocess.CalledProcessError:
31 print(
'Failed to activate emsdk')
35if __name__ ==
'__main__':
def print(*args, **kwargs)