diff options
Diffstat (limited to 'mat/mat.py')
| -rw-r--r-- | mat/mat.py | 12 |
1 files changed, 9 insertions, 3 deletions
| @@ -18,9 +18,15 @@ import strippers | |||
| 18 | __version__ = '0.1' | 18 | __version__ = '0.1' |
| 19 | __author__ = 'jvoisin' | 19 | __author__ = 'jvoisin' |
| 20 | 20 | ||
| 21 | LOGGING_LEVEL = logging.DEBUG | 21 | #Silence |
| 22 | LOGGING_LEVEL = logging.CRITICAL | ||
| 23 | hachoir_core.config.quiet = True | ||
| 22 | 24 | ||
| 23 | logging.basicConfig(level=LOGGING_LEVEL) | 25 | #Verbose |
| 26 | #LOGGING_LEVEL = logging.DEBUG | ||
| 27 | #hachoir_core.config.quiet = False | ||
| 28 | |||
| 29 | logging.basicConfig(filename='report.log', level=LOGGING_LEVEL) | ||
| 24 | 30 | ||
| 25 | 31 | ||
| 26 | def get_sharedir(): | 32 | def 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 | ||
