diff options
| author | jvoisin | 2013-04-27 16:39:45 +0200 |
|---|---|---|
| committer | jvoisin | 2013-04-27 16:39:45 +0200 |
| commit | df3a1b246031fa06adecf7dbf6e54600b20b10ba (patch) | |
| tree | 4697db0080ef9a72b8506579e8440d8bb332c36c /mat | |
| parent | 3e2670ea9a87ce55f5308b0d5343bd49aab25c0b (diff) | |
The GUI now use glade !
Warning: this is a pretty huge commit
Not everything is ported now, but this is
already a big step.
Diffstat (limited to 'mat')
| -rwxr-xr-x | mat | 3 |
1 files changed, 2 insertions, 1 deletions
| @@ -6,6 +6,7 @@ | |||
| 6 | import sys | 6 | import sys |
| 7 | import xml.sax | 7 | import xml.sax |
| 8 | import optparse | 8 | import optparse |
| 9 | import os | ||
| 9 | 10 | ||
| 10 | import hachoir_core | 11 | import hachoir_core |
| 11 | 12 | ||
| @@ -104,7 +105,7 @@ def list_supported(): | |||
| 104 | handler = mat.XMLParser() | 105 | handler = mat.XMLParser() |
| 105 | parser = xml.sax.make_parser() | 106 | parser = xml.sax.make_parser() |
| 106 | parser.setContentHandler(handler) | 107 | parser.setContentHandler(handler) |
| 107 | path = mat.get_formats() | 108 | path = os.path.join(mat.get_formats(), 'FORMATS') |
| 108 | with open(path, 'r') as xmlfile: | 109 | with open(path, 'r') as xmlfile: |
| 109 | parser.parse(xmlfile) | 110 | parser.parse(xmlfile) |
| 110 | 111 | ||
