diff options
| author | jvoisin | 2015-03-31 00:24:37 +0200 |
|---|---|---|
| committer | jvoisin | 2015-03-31 00:24:37 +0200 |
| commit | 46c77ed2f40998c32587479b4754009cbc5efa67 (patch) | |
| tree | 6d22bdcbcb7ad5a7e3d29e6567f6172004b624ce /mat-gui | |
| parent | 79ce29a7d5e41bb3bb2499bc7eb99164c423aa1d (diff) | |
Fix issue #7858
GUI fails to start if run from a directory that contains a "data"
sub-directory <- This is now fixed.
Diffstat (limited to 'mat-gui')
| -rwxr-xr-x | mat-gui | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -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 | ||
