rublon-ssh-old/SSH/PAM/getPythonPath.sh
2022-11-08 20:24:50 +01:00

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 ${@}