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 -0600
Seen: 2,546 times
Last updated: Aug 23 '21
Using catkin to generate and use protobuf messages
Visualize collada file on rviz [closed]
Python action client does not connect properly
Catkin/Ros “undefined reference to”
Need help converting a package to catkin
Adding postinst to debian release
Import Error:No module named rospkg