From 0b4e1f2b412ad236c271b8f77cb0007dd091d4c3 Mon Sep 17 00:00:00 2001 From: jvoisin Date: Thu, 17 May 2012 14:04:09 +0200 Subject: Fix the "No such file or directory" logo bug --- mat-gui | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'mat-gui') diff --git a/mat-gui b/mat-gui index 3942689..18c7467 100755 --- a/mat-gui +++ b/mat-gui @@ -52,8 +52,8 @@ class GUI: self.window.set_title('Metadata Anonymisation Toolkit') self.window.connect('destroy', gtk.main_quit) self.window.set_default_size(800, 600) - path = os.path.join(mat.get_sharedir(), 'logo.png') - icon = gtk.gdk.pixbuf_new_from_file_at_size(path, 50, 50) + self.logo = mat.get_sharedir('logo.png') + icon = gtk.gdk.pixbuf_new_from_file_at_size(self.logo, 50, 50) self.window.set_icon(icon) self.accelerator = gtk.AccelGroup() @@ -379,7 +379,7 @@ class GUI: w.set_artists(['Marine BenoƮt', ]) w.set_copyright('GNU Public License v2') w.set_comments(_('This software was coded during the GSoC 2011')) - w.set_logo(gtk.gdk.pixbuf_new_from_file_at_size('logo.png', 400, 200)) + w.set_logo(gtk.gdk.pixbuf_new_from_file_at_size(self.logo, 400, 200)) w.set_program_name('Metadata Anonymisation Toolkit') w.set_version(mat.__version__) w.set_website('https://mat.boum.org') @@ -405,7 +405,7 @@ class GUI: handler = mat.XMLParser() parser = xml.sax.make_parser() parser.setContentHandler(handler) - path = os.path.join(mat.get_sharedir(), 'FORMATS') + path = mat.get_sharedir('FORMATS') with open(path, 'r') as xmlfile: parser.parse(xmlfile) -- cgit v1.3