diff options
| author | jvoisin | 2011-08-30 18:36:08 +0200 |
|---|---|---|
| committer | jvoisin | 2011-08-30 18:36:08 +0200 |
| commit | a070d356e3c57dff7df9fffcea0ec98cdc7ae2f3 (patch) | |
| tree | 038e7053c80175eb920c78fd945392bed5cf3f8f | |
| parent | 52d403f2a7cf7ac491f5d6c2587fc594f4c1ec32 (diff) | |
oups, forgot to add this file to the previous commit !
| -rw-r--r-- | mat/mat.py | 12 |
1 files changed, 12 insertions, 0 deletions
| @@ -54,6 +54,7 @@ except ImportError: | |||
| 54 | print('Unable to import python-mutagen: limited audio format support') | 54 | print('Unable to import python-mutagen: limited audio format support') |
| 55 | 55 | ||
| 56 | try: | 56 | try: |
| 57 | #FIXME : WIP | ||
| 57 | subprocess.Popen('exiftool_', stdout=open('/dev/null')) | 58 | subprocess.Popen('exiftool_', stdout=open('/dev/null')) |
| 58 | import exiftool | 59 | import exiftool |
| 59 | #STRIPPERS['image/jpeg'] = exiftool.JpegStripper | 60 | #STRIPPERS['image/jpeg'] = exiftool.JpegStripper |
| @@ -64,6 +65,17 @@ except: | |||
| 64 | STRIPPERS['image/png'] = images.PngStripper | 65 | STRIPPERS['image/png'] = images.PngStripper |
| 65 | 66 | ||
| 66 | 67 | ||
| 68 | def get_sharedir(): | ||
| 69 | ''' | ||
| 70 | An ugly hack to find where is the "FORMATS" file. | ||
| 71 | Blame intrigeri. | ||
| 72 | ''' | ||
| 73 | if os.path.isfile('FORMATS'): | ||
| 74 | return '' | ||
| 75 | elif os.path.exist('/usr/local/share/mat/'): | ||
| 76 | return '/usr/local/share/mat/' | ||
| 77 | |||
| 78 | |||
| 67 | class XMLParser(xml.sax.handler.ContentHandler): | 79 | class XMLParser(xml.sax.handler.ContentHandler): |
| 68 | ''' | 80 | ''' |
| 69 | Parse the supported format xml, and return a corresponding | 81 | Parse the supported format xml, and return a corresponding |
