blob: abdc30a8ccbd5209b85918b84b97cbc86bb9d653 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
Index: rqt_gui/src/rqt_gui/ros_plugin_provider.py
===================================================================
--- rqt_gui.orig/src/rqt_gui/ros_plugin_provider.py
+++ rqt_gui/src/rqt_gui/ros_plugin_provider.py
@@ -109,6 +109,10 @@ class RosPluginProvider(PluginProvider):
def _parse_plugin_xml(self, package_name, plugin_xml):
plugin_descriptors = []
+ # Gentoo: strip ros_packages to get the real path.
+ if not os.path.isfile(plugin_xml):
+ plugin_xml = plugin_xml.replace('ros_packages/', '')
+
if not os.path.isfile(plugin_xml):
qCritical('RosPluginProvider._parse_plugin_xml() plugin file "%s" in package "%s" not found' % (plugin_xml, package_name))
return plugin_descriptors
|