Commit 011471d9f4e6dc2995d74c8611351246667163f9

Authored by Christian Herdtweck
1 parent 8e1d23d7

Change how ppt_parser imports olefile

This may be a reason for users complaining about missing logger (issue #101)
and fixed failing isinstance(ole, olefile.OleFileIO) on my machine
Showing 1 changed file with 1 additions and 6 deletions
oletools/ppt_parser.py
... ... @@ -40,12 +40,7 @@ import struct
40 40 import traceback
41 41 import os
42 42  
43   -try:
44   - # absolute import when oletools is installed
45   - import oletools.thirdparty.olefile as olefile
46   -except:
47   - # relative import otherwise
48   - import thirdparty.olefile as olefile
  43 +import thirdparty.olefile as olefile
49 44  
50 45 import zlib
51 46  
... ...