Get the absolute svg path, not just the svg file

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer
2016-03-04 08:50:49 +10:00
parent 7e46796779
commit e1d698ace0

View File

@@ -88,8 +88,7 @@ class Piper(Gtk.Window):
self.add(grid)
# load the right image
svg = self._ratbag_device.svg
svg = "{}/libratbag/{}".format(sysconfig.get_config_var("datarootdir"), svg)
svg = self._ratbag_device.svg_path
if not os.path.isfile(svg):
svg = "404.svg"
img = main_window.get_object("piper-image-device")