Commit 71e495e2 authored by Roman Yurchak's avatar Roman Yurchak

Use Path.resolve() to get the absolute path of bin/pyodide

parent 22e99f12
#!/bin/sh #!/bin/sh
set -x set -x
ls -l /bin/sh
# get the absolute path to the root directory # get the absolute path to the root directory
ROOTDIR="$(cd ${BASH_SOURCE%/*}/../; pwd)"; ROOTDIR=$(python -c 'import pathlib, sys; print(pathlib.Path(sys.argv[1]).resolve().parent)' \
"${BASH_SOURCE[0]}")
export PYTHONPATH="${PYTHONPATH}:${ROOTDIR}" export PYTHONPATH="${PYTHONPATH}:${ROOTDIR}"
python -m pyodide_build "$@" python -m pyodide_build "$@"
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment