File: 01-fix_logo_path.patch

package info (click to toggle)
bpython 0.12-1.2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 764 kB
  • ctags: 699
  • sloc: python: 5,006; makefile: 37; sh: 37
file content (21 lines) | stat: -rw-r--r-- 735 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
From: David Paleino <dapal@debian.org>
Subject: look for the icon in /usr/share/pixmaps/, rather than the
 python module directory
Forwarded: not-needed

---
 bpython/gtk_.py |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

--- bpython.orig/bpython/gtk_.py
+++ bpython/bpython/gtk_.py
@@ -800,8 +800,7 @@ def main(args=None):
 
         # branding
         # fix icon to be distributed and loaded from the correct path
-        icon = gtk.gdk.pixbuf_new_from_file(os.path.join(os.path.dirname(__file__),
-                                                         'logo.png'))
+        icon = gtk.gdk.pixbuf_new_from_file("/usr/share/pixmaps/bpython.png")
 
         parent.set_title('bpython')
         parent.set_icon(icon)