ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

how to set custom python path in catkin

asked 2013-08-03 23:15:21 -0600

Kei Okada gravatar image

updated 2014-01-28 17:17:32 -0600

ngrennan gravatar image


I used <export><python path="..."/></export> in manifest.xml with rosbuild, is there way to set similar thing in catkin?

edit retag flag offensive close merge delete

2 Answers

Sort by » oldest newest most voted

answered 2014-07-03 15:53:34 -0600

William gravatar image

updated 2014-07-03 15:54:54 -0600

You should do this with an environment hook, see:

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.

edit flag offensive delete link more

answered 2014-07-03 15:33:35 -0600

ct2034 gravatar image

updated 2021-08-23 12:09:27 -0600

lucasw gravatar image

Why not answering a bit of an old question: You can set a environment variable out of the CMakeLists.txt
SET(ENV{PYTHONPATH} "/the/path/you/want")

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2013-08-03 23:15:21 -0600

Seen: 2,546 times

Last updated: Aug 23 '21