summaryrefslogtreecommitdiff
path: root/mat-gui
diff options
context:
space:
mode:
Diffstat (limited to 'mat-gui')
-rwxr-xr-xmat-gui4
1 files changed, 2 insertions, 2 deletions
diff --git a/mat-gui b/mat-gui
index aa3ee07..dbea525 100755
--- a/mat-gui
+++ b/mat-gui
@@ -41,7 +41,7 @@ class GUI(object):
41 # Main window 41 # Main window
42 self.builder = Gtk.Builder() 42 self.builder = Gtk.Builder()
43 self.builder.set_translation_domain('MAT') 43 self.builder.set_translation_domain('MAT')
44 self.builder.add_from_file(os.path.join(mat.get_datadir(), 'mat.glade')) 44 self.builder.add_from_file(mat.get_datafile_path('mat.glade'))
45 self.builder.connect_signals(self) 45 self.builder.connect_signals(self)
46 46
47 self.logo = mat.get_logo() 47 self.logo = mat.get_logo()
@@ -71,7 +71,7 @@ class GUI(object):
71 self.supported_dict = mat.XMLParser() 71 self.supported_dict = mat.XMLParser()
72 xml_parser = xml.sax.make_parser() 72 xml_parser = xml.sax.make_parser()
73 xml_parser.setContentHandler(self.supported_dict) 73 xml_parser.setContentHandler(self.supported_dict)
74 path = os.path.join(mat.get_datadir(), 'FORMATS') 74 path = mat.get_datafile_path('FORMATS')
75 with open(path, 'r') as xmlfile: 75 with open(path, 'r') as xmlfile:
76 xml_parser.parse(xmlfile) 76 xml_parser.parse(xmlfile)
77 77