summaryrefslogtreecommitdiff
path: root/mat/mat.py
diff options
context:
space:
mode:
Diffstat (limited to 'mat/mat.py')
-rw-r--r--mat/mat.py12
1 files changed, 9 insertions, 3 deletions
diff --git a/mat/mat.py b/mat/mat.py
index 0e66df8..7fab98c 100644
--- a/mat/mat.py
+++ b/mat/mat.py
@@ -18,9 +18,15 @@ import strippers
18__version__ = '0.1' 18__version__ = '0.1'
19__author__ = 'jvoisin' 19__author__ = 'jvoisin'
20 20
21LOGGING_LEVEL = logging.DEBUG 21#Silence
22LOGGING_LEVEL = logging.CRITICAL
23hachoir_core.config.quiet = True
22 24
23logging.basicConfig(level=LOGGING_LEVEL) 25#Verbose
26#LOGGING_LEVEL = logging.DEBUG
27#hachoir_core.config.quiet = False
28
29logging.basicConfig(filename='report.log', level=LOGGING_LEVEL)
24 30
25 31
26def get_sharedir(): 32def get_sharedir():
@@ -31,7 +37,7 @@ def get_sharedir():
31 return '' 37 return ''
32 elif os.path.exists('/usr/local/share/mat/'): 38 elif os.path.exists('/usr/local/share/mat/'):
33 return '/usr/local/share/mat/' 39 return '/usr/local/share/mat/'
34 elif os.path.exist('/usr/share/mat/'): 40 elif os.path.exists('/usr/share/mat/'):
35 return '/usr/share/mat' 41 return '/usr/share/mat'
36 42
37 43