14 lines
328 B
Bash
14 lines
328 B
Bash
#!/usr/bin/env bash
|
|
|
|
function main()
|
|
{
|
|
local python_path="$(python3 -c "from sysconfig import get_paths as gp; print(gp()[\"include\"])")"
|
|
if [ -z "${python_path}" ]; then
|
|
python_path="$(python -c "from sysconfig import get_paths as gp; print(gp()[\"include\"])")"
|
|
fi
|
|
|
|
echo "${python_path}"
|
|
}
|
|
|
|
main ${@}
|