Ask Your Question
2

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 2014-07-03 15:34:28 -0600

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

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

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

Seen: 1,256 times

Last updated: Jul 03 '14