summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjvoisin2011-08-30 18:36:08 +0200
committerjvoisin2011-08-30 18:36:08 +0200
commita070d356e3c57dff7df9fffcea0ec98cdc7ae2f3 (patch)
tree038e7053c80175eb920c78fd945392bed5cf3f8f
parent52d403f2a7cf7ac491f5d6c2587fc594f4c1ec32 (diff)
oups, forgot to add this file to the previous commit !
-rw-r--r--mat/mat.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/mat/mat.py b/mat/mat.py
index 50bb971..eb71fc7 100644
--- a/mat/mat.py
+++ b/mat/mat.py
@@ -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
56try: 56try:
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
68def 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
67class XMLParser(xml.sax.handler.ContentHandler): 79class 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