From cd25c260215381efeb6133ad5c9c7dc78828f8d1 Mon Sep 17 00:00:00 2001 From: Harsh Master Date: Thu, 14 Sep 2023 00:34:49 +0530 Subject: [PATCH] Issue #415: Added code to access parent directory for fixing import error for core.py Fixed Import Error: Issue #415 --- tools/forensic_tools.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tools/forensic_tools.py b/tools/forensic_tools.py index 84d6b7d..4b2cc69 100644 --- a/tools/forensic_tools.py +++ b/tools/forensic_tools.py @@ -1,6 +1,13 @@ # coding=utf-8 import os +import sys + +# Fetching parent directory for importing core.py +current_dir = os.path.dirname(__file__) +parent_dir = os.path.dirname(current_dir) +sys.path.append(parent_dir) + from core import HackingTool from core import HackingToolsCollection