mirror of
https://github.com/libratbag/piper.git
synced 2026-04-22 23:38:00 -04:00
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:
3
piper.py
3
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")
|
||||
|
||||
Reference in New Issue
Block a user