how to set custom python path in catkin
Hi
I used <export><python path="..."/></export>
in manifest.xml with rosbuild, is there way to set similar thing in catkin?
ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
Hi
I used <export><python path="..."/></export>
in manifest.xml with rosbuild, is there way to set similar thing in catkin?
You should do this with an environment hook, see:
http://docs.ros.org/hydro/api/catkin/...
http://docs.ros.org/hydro/api/catkin/...
https://github.com/ros/ros/blob/indig...
https://github.com/ros/roslisp/blob/m...
However, you should reevaluate why you need to do this. Instead you should install your python code into a place where it can be on the path automatically.
Why not answering a bit of an old question:
You can set a environment variable out of the CMakeLists.txt
https://gitlab.kitware.com/cmake/comm...
SET(ENV{PYTHONPATH} "/the/path/you/want")
Asked: 2013-08-03 23:15:21 -0500
Seen: 2,608 times
Last updated: Aug 23 '21
Importing services declared in the same package in python and catkin
Roslaunch not able to detect launch file packages
Building a Pure CMake project with Catkin
How to exclude one package from the catkin_make build?
rostest & Python - Multiple Test Fixtures In Single File
Maintaining a ROS source install (add packages, update release).
[ROS2] Launch same node several times using same launch file