summaryrefslogtreecommitdiff
path: root/MAT
diff options
context:
space:
mode:
Diffstat (limited to 'MAT')
-rw-r--r--MAT/mat.py15
1 files changed, 7 insertions, 8 deletions
diff --git a/MAT/mat.py b/MAT/mat.py
index 3a0938a..0da5c3b 100644
--- a/MAT/mat.py
+++ b/MAT/mat.py
@@ -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
42def get_formats(): 42def 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
51class XMLParser(xml.sax.handler.ContentHandler): 50class XMLParser(xml.sax.handler.ContentHandler):
52 ''' 51 '''