From d51d31c1c0ca642b656d7afebcfa2991571a001a Mon Sep 17 00:00:00 2001 From: Olivier Bilodeau Date: Wed, 13 Feb 2019 14:36:29 -0500 Subject: [PATCH] Fixing PrettyTable import for oleid (fixes #391) --- oletools/oleid.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/oletools/oleid.py b/oletools/oleid.py index 5370503..ec0e237 100644 --- a/oletools/oleid.py +++ b/oletools/oleid.py @@ -86,13 +86,13 @@ from os.path import dirname, abspath # little hack to allow absolute imports even if oletools is not installed # (required to run oletools directly as scripts in any directory). try: - from oletools.thirdparty import prettytable + from oletools.thirdparty.prettytable import prettytable except ImportError: PARENT_DIR = dirname(dirname(abspath(__file__))) if PARENT_DIR not in sys.path: sys.path.insert(0, PARENT_DIR) del PARENT_DIR - from oletools.thirdparty import prettytable + from oletools.thirdparty.prettytable import prettytable import olefile -- libgit2 0.21.4