From e1d698ace00a6d9353ebba7d3da65794dc7acf9f Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Fri, 4 Mar 2016 08:50:49 +1000 Subject: [PATCH] Get the absolute svg path, not just the svg file Signed-off-by: Peter Hutterer --- piper.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/piper.py b/piper.py index 6e1d80d..b21ef6b 100755 --- a/piper.py +++ b/piper.py @@ -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")