diff options
| author | jvoisin | 2012-05-17 21:26:59 +0200 |
|---|---|---|
| committer | jvoisin | 2012-05-17 21:26:59 +0200 |
| commit | e3ff5f52126ce98b3fe457946039d9dac6a7a800 (patch) | |
| tree | 1b35a71606c5e30a129cd7b6a0c79709575e4d6a /lib/mat.py | |
| parent | 0b4e1f2b412ad236c271b8f77cb0007dd091d4c3 (diff) | |
Fix a stupid mistake
Diffstat (limited to 'lib/mat.py')
| -rw-r--r-- | lib/mat.py | 6 |
1 files changed, 3 insertions, 3 deletions
| @@ -35,12 +35,12 @@ def get_sharedir(filename): | |||
| 35 | ''' | 35 | ''' |
| 36 | An ugly hack to find various files | 36 | An ugly hack to find various files |
| 37 | ''' | 37 | ''' |
| 38 | if os.path.exists(os.path.join('/usr/local/share/mat/', filename)): | 38 | if os.path.isfile(filename): |
| 39 | return '.' | ||
| 40 | elif os.path.exists(os.path.join('/usr/local/share/mat/', filename)): | ||
| 39 | return os.path.join('/usr/local/share/mat/', filename) | 41 | return os.path.join('/usr/local/share/mat/', filename) |
| 40 | elif os.path.exists(os.path.join('/usr/share/mat/', filename)): | 42 | elif os.path.exists(os.path.join('/usr/share/mat/', filename)): |
| 41 | return os.path.join('/usr/share/mat', filename) | 43 | return os.path.join('/usr/share/mat', filename) |
| 42 | elif os.path.isfile('FORMATS'): | ||
| 43 | return '.' | ||
| 44 | 44 | ||
| 45 | 45 | ||
| 46 | class XMLParser(xml.sax.handler.ContentHandler): | 46 | class XMLParser(xml.sax.handler.ContentHandler): |
