#!/usr/bin/env python # This script should work in python 2 *or* 3. It loads emcc, which is python 2. import sys if sys.version_info.major == 2: import emcc emcc.run(sys.argv) else: import subprocess sys.exit(subprocess.call(['python2'] + sys.argv))