Skip to content

Commit

Permalink
add comment, fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
steple committed Jan 3, 2025
1 parent 3f152e9 commit c2eefcd
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions isaaclab.sh
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,11 @@ extract_python_exe() {
local python_exe=${ISAACLAB_PATH}/_isaac_sim/python.sh

if [ ! -f "${python_exe}" ]; then
# note: we need to check system python for cases such as docker
# inside docker, if user installed into system python, we need to use that
# otherwise, use the python from the kit
if [ $(python -m pip list | grep -c 'isaacsim-rl') ]; then
# Next, see if the system provides python. This includes use cases such as docker in docker, or systems
# where the default python is not the desired python. In the latter case, python would give us the default
# binary even if we are in a virtual environment created with the desired python version.
# That version is ok to use if the isaacsim-rl package is installed.
if (( $(python${PYTHON_VERSION} -m pip list | grep -c 'isaacsim-rl') )); then
local python_exe=$(which python${PYTHON_VERSION})
fi
fi
Expand Down

0 comments on commit c2eefcd

Please sign in to comment.