Skip to content

Commit 4e73e03

Browse files
committed
Clear pythonpath from ROS for casadi code generation.
Signed-off-by: James Goppert <james.goppert@gmail.com>
1 parent 5698a7f commit 4e73e03

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

scripts/cyecca_python

+6-2
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,15 @@ CYECCA_PATH=$SCRIPT_DIR/../../modules/lib/cyecca
77
# disable virtual env if running (west venv)
88
PYTHON_PATH=`dirname -- "$(which python)"`
99
if [ -f $PYTHON_PATH/activate ]; then
10-
source $PYTHON_PATH/activate
11-
deactivate
10+
source $PYTHON_PATH/activate
11+
deactivate
1212
fi
1313

14+
unset PYTHONPATH
1415
source ${CYECCA_PATH}/.venv/bin/activate
16+
echo python path: $PYTHONPATH
1517
echo python3 `which python3`
1618

1719
python3 $@
20+
21+
# vi: ts=4 sw=4 et

0 commit comments

Comments
 (0)