aicantar/MhtExtractor

"No such file or directory" when relative input path is used

Closed this issue · 1 comments

Running the extractor as follows:
python3 unmht.py -o /some/other/place ../file.mht
raises the FileNotFoundError exception.

This happens because the output directory is incorrectly formed from the input file name. Also, if the extractor is run as python3 unmht.py -o . ../file.mht, the files will be extracted to the .. directory, instead of the current one.