Skip to content

Commit

Permalink
Merge pull request #416 from Harsh0707005/Harsh0707005-#415
Browse files Browse the repository at this point in the history
Issue #415: Added code to access parent directory for fixing import error for core.py
  • Loading branch information
Z4nzu committed Oct 14, 2023
2 parents f5aff55 + cd25c26 commit 89cfefa
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tools/forensic_tools.py
Original file line number Diff line number Diff line change
@@ -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

Expand Down

0 comments on commit 89cfefa

Please sign in to comment.