2019-06-13 00:55:29 +02:00
|
|
|
#!/bin/sh
|
2019-08-27 14:02:50 -07:00
|
|
|
# Copyright 2019 The Emscripten Authors. All rights reserved.
|
|
|
|
|
# Emscripten is available under two separate licenses, the MIT license and the
|
|
|
|
|
# University of Illinois/NCSA Open Source License. Both these licenses can be
|
|
|
|
|
# found in the LICENSE file.
|
2013-09-05 16:42:27 +03:00
|
|
|
|
2019-08-27 14:02:50 -07:00
|
|
|
# Wrapper script that runs emsdk.py
|
2019-04-29 15:39:20 -07:00
|
|
|
|
2019-08-27 14:02:50 -07:00
|
|
|
base_dir=$(dirname "$0")
|
2019-04-29 15:39:20 -07:00
|
|
|
|
2019-08-27 14:02:50 -07:00
|
|
|
# Look for python3 first. This is especially important on macOS (See:
|
|
|
|
|
# https://github.com/emscripten-core/emsdk/pull/273)
|
2019-08-29 00:35:36 -07:00
|
|
|
python=$(which python3 2> /dev/null)
|
2019-08-27 14:02:50 -07:00
|
|
|
if [ $? != 0 ]; then
|
|
|
|
|
python=python
|
|
|
|
|
fi
|
2013-09-05 16:42:27 +03:00
|
|
|
|
2019-08-27 14:02:50 -07:00
|
|
|
exec $python $0.py "$@"
|