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

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

Hi

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
1

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:

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.

edit flag offensive delete link more
0

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
https://gitlab.kitware.com/cmake/comm...
SET(ENV{PYTHONPATH} "/the/path/you/want")

edit flag offensive delete link more

Question Tools

1 follower

Stats

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

Seen: 2,694 times

Last updated: Aug 23 '21