summaryrefslogtreecommitdiff
path: root/MAT/mat.py
diff options
context:
space:
mode:
authorjvoisin2013-04-29 23:23:07 +0200
committerjvoisin2013-04-29 23:23:07 +0200
commitfee6adf444e1fc5fe606e059c57e9b534c082e70 (patch)
tree4e90480151d78e5c2d956b9a3b5429227e1dc817 /MAT/mat.py
parentac82b5fb712cbc0c80d4f6fb7c11bae70eea78e5 (diff)
parentf5f1f9b0087a7fe535cc0f0072182f49d39619b2 (diff)
Merge branch 'glade'
Diffstat (limited to 'MAT/mat.py')
-rw-r--r--MAT/mat.py15
1 files changed, 7 insertions, 8 deletions
diff --git a/MAT/mat.py b/MAT/mat.py
index af12466..20046c2 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 '''