diff --git a/bin/pyodide b/bin/pyodide index adac9f553..653c925c9 100755 --- a/bin/pyodide +++ b/bin/pyodide @@ -1,8 +1,8 @@ -#!/bin/sh -set -x +#!/bin/bash # get the absolute path to the root directory -ROOTDIR=$(python -c 'import pathlib, sys; print(pathlib.Path(sys.argv[1]).resolve().parent)' \ +ROOTDIR=$(python -c 'import pathlib, sys; \ + print(pathlib.Path(sys.argv[1]).resolve().parents[1])' \ "${BASH_SOURCE[0]}") export PYTHONPATH="${PYTHONPATH}:${ROOTDIR}"