2015-11-13 00:15:26 +03:00
|
|
|
#!/usr/bin/env python
|
2011-11-21 09:02:46 +04:00
|
|
|
|
2015-11-13 00:15:26 +03:00
|
|
|
# This script should work in python 2 *or* 3. It loads emcc.py, which needs python 2.
|
2011-11-21 09:02:46 +04:00
|
|
|
|
2015-11-13 00:15:26 +03:00
|
|
|
import sys
|
2011-11-21 09:02:46 +04:00
|
|
|
|
2015-11-13 00:15:26 +03:00
|
|
|
if sys.version_info.major == 2:
|
|
|
|
import emcc
|
|
|
|
emcc.run()
|
2012-12-04 02:10:35 +04:00
|
|
|
else:
|
2015-11-13 00:15:26 +03:00
|
|
|
import subprocess
|
|
|
|
sys.exit(subprocess.call(['python2'] + sys.argv))
|
2011-12-12 03:24:04 +04:00
|
|
|
|