Commit d51d31c1c0ca642b656d7afebcfa2991571a001a

Authored by Olivier Bilodeau
1 parent a7309e59

Fixing PrettyTable import for oleid (fixes #391)

Showing 1 changed file with 2 additions and 2 deletions
oletools/oleid.py
... ... @@ -86,13 +86,13 @@ from os.path import dirname, abspath
86 86 # little hack to allow absolute imports even if oletools is not installed
87 87 # (required to run oletools directly as scripts in any directory).
88 88 try:
89   - from oletools.thirdparty import prettytable
  89 + from oletools.thirdparty.prettytable import prettytable
90 90 except ImportError:
91 91 PARENT_DIR = dirname(dirname(abspath(__file__)))
92 92 if PARENT_DIR not in sys.path:
93 93 sys.path.insert(0, PARENT_DIR)
94 94 del PARENT_DIR
95   - from oletools.thirdparty import prettytable
  95 + from oletools.thirdparty.prettytable import prettytable
96 96  
97 97 import olefile
98 98  
... ...