File: 00-install-data-files.patch

package info (click to toggle)
glueviz 0.14.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 29,280 kB
  • sloc: python: 41,995; makefile: 138; sh: 63
file content (20 lines) | stat: -rw-r--r-- 727 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Description: Installs under the right directory the package data.
Author: Josue Ortega <josueortega@debian.org.gt>
Last-Update: 2017-07-24

--- a/glue/icons/__init__.py
+++ b/glue/icons/__init__.py
@@ -27,8 +27,13 @@
     icon_name += '.{0}'.format(icon_format)
 
     try:
+        """
         if pkg_resources.resource_exists('glue.icons', icon_name):
             return pkg_resources.resource_filename('glue.icons', icon_name)
+        """
+        debian_path = '/'.join(['/usr/share/glue', icon_name])
+        if os.path.exists(debian_path):
+            return debian_path
         else:
             raise RuntimeError("Icon does not exist: %s" % icon_name)
     except NotImplementedError:  # workaround for mac app