diff options
| author | jvoisin | 2013-07-17 11:28:41 +0200 |
|---|---|---|
| committer | jvoisin | 2013-07-17 11:28:41 +0200 |
| commit | 82421f5519ea0e409c5249026ca81fa9bd2b48fd (patch) | |
| tree | 4abeafa876aa98be064b55ae1be7fc988fe4b854 | |
| parent | fe64b7cd54232210bb74273722b01532133d595d (diff) | |
Fix deterministic filenames. Oups.
| -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 | ''' |
