aboutsummaryrefslogtreecommitdiff
path: root/em++
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-08-09 16:48:05 -0700
committerAlon Zakai <alonzakai@gmail.com>2013-08-09 16:48:05 -0700
commitae236b288c46dab914a137670e9366e0b0cc4c09 (patch)
treecbd243b152fbfd1b0581c933f35e0c728b61d3c7 /em++
parent852bfa71be2246d74f3c7ca456321b174ff2d6d9 (diff)
warn in em++ if PYTHON is not defined properly
Diffstat (limited to 'em++')
-rwxr-xr-xem++2
1 files changed, 2 insertions, 0 deletions
diff --git a/em++ b/em++
index ba09e1a2..810b7aec 100755
--- a/em++
+++ b/em++
@@ -8,5 +8,7 @@ import os, subprocess, sys
from tools import shared
os.environ['EMMAKEN_CXX'] = '1'
+if not os.path.exists(shared.PYTHON):
+ print >> sys.stderr, 'warning: PYTHON does not seem to be defined properly in ~/.emscripten (%s)' % shared.PYTHON
exit(subprocess.call([shared.PYTHON, shared.EMCC] + sys.argv[1:]))