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')
| -rw-r--r-- | MAT/mat.py | 15 |
1 files changed, 7 insertions, 8 deletions
| @@ -39,14 +39,13 @@ def get_logo(): | |||
| 39 | elif os.path.isfile('/usr/local/share/pixmaps/mat.png'): | 39 | elif os.path.isfile('/usr/local/share/pixmaps/mat.png'): |
| 40 | return '/usr/local/share/pixmaps/mat.png' | 40 | return '/usr/local/share/pixmaps/mat.png' |
| 41 | 41 | ||
| 42 | def get_formats(): | 42 | def get_datadir(): |
| 43 | if os.path.isfile('./data/FORMATS'): | 43 | if os.path.isdir('./data/'): |
| 44 | return './data/FORMATS' | 44 | return './data/' |
| 45 | elif os.path.isfile('/usr/share/mat/FORMATS'): | 45 | elif os.path.isdir('/usr/share/mat/'): |
| 46 | return '/usr/share/mat/FORMATS' | 46 | return '/usr/share/mat/' |
| 47 | elif os.path.isfile('/usr/local/share/mat/FORMATS'): | 47 | elif os.path.isdir('/usr/local/share/mat/'): |
| 48 | return '/usr/local/share/mat/FORMATS' | 48 | return '/usr/local/share/mat/' |
| 49 | |||
| 50 | 49 | ||
| 51 | class XMLParser(xml.sax.handler.ContentHandler): | 50 | class XMLParser(xml.sax.handler.ContentHandler): |
| 52 | ''' | 51 | ''' |
