First time here? Check out the FAQ!
answered 2017-07-04 06:15:34 -0500
You could have a look at the roslib.package example. It contains examples for both python adn C++. So for python: roslib.packages.get_pkg_dir('mypack')