Fix running emscripten bootstrap - Run without stdin so that bootstrap.py doesn't run in interactive mode. - Don't capture stderr/stdout, no need to hide the useful output messages. Fixes: #1755
diff --git a/emsdk.py b/emsdk.py index 20a1197..69a3ba3 100644 --- a/emsdk.py +++ b/emsdk.py
@@ -1462,10 +1462,10 @@ if not env: return False try: - subprocess.check_output([sys.executable, os.path.join(directory, 'bootstrap.py')], - cwd=directory, stderr=subprocess.STDOUT, env=env, text=True) + subprocess.check_call([sys.executable, os.path.join(directory, 'bootstrap.py')], + cwd=directory, stdin=subprocess.DEVNULL, env=env, text=True) except subprocess.CalledProcessError as e: - errlog('Error running %s:\n%s' % (e.cmd, e.output)) + errlog('Error running %s' % str(e)) return False print('Done running: Emscripten bootstrap')