diff options
Diffstat (limited to 'MAT')
| -rw-r--r-- | MAT/parser.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/MAT/parser.py b/MAT/parser.py index bbca9b3..2dda074 100644 --- a/MAT/parser.py +++ b/MAT/parser.py | |||
| @@ -6,6 +6,7 @@ import hachoir_core | |||
| 6 | import hachoir_editor | 6 | import hachoir_editor |
| 7 | 7 | ||
| 8 | import os | 8 | import os |
| 9 | import tempfile | ||
| 9 | 10 | ||
| 10 | import mat | 11 | import mat |
| 11 | 12 | ||
| @@ -34,7 +35,8 @@ class GenericParser(object): | |||
| 34 | except TypeError: # get rid of "decoding Unicode is not supported" | 35 | except TypeError: # get rid of "decoding Unicode is not supported" |
| 35 | self.filename = filename | 36 | self.filename = filename |
| 36 | self.basename = os.path.basename(filename) | 37 | self.basename = os.path.basename(filename) |
| 37 | self.output = filename + '.tmp' | 38 | _, output = tempfile.mkstemp() |
| 39 | self.output = hachoir_core.cmd_line.unicodeFilename(output) | ||
| 38 | 40 | ||
| 39 | def is_clean(self): | 41 | def is_clean(self): |
| 40 | ''' | 42 | ''' |
