summaryrefslogtreecommitdiff
path: root/mat
diff options
context:
space:
mode:
authorjvoisin2013-04-27 16:39:45 +0200
committerjvoisin2013-04-27 16:39:45 +0200
commitdf3a1b246031fa06adecf7dbf6e54600b20b10ba (patch)
tree4697db0080ef9a72b8506579e8440d8bb332c36c /mat
parent3e2670ea9a87ce55f5308b0d5343bd49aab25c0b (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-xmat3
1 files changed, 2 insertions, 1 deletions
diff --git a/mat b/mat
index da43198..c0b5ee3 100755
--- a/mat
+++ b/mat
@@ -6,6 +6,7 @@
6import sys 6import sys
7import xml.sax 7import xml.sax
8import optparse 8import optparse
9import os
9 10
10import hachoir_core 11import 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