Issue #415: Added code to access parent directory for fixing import error for core.py
This commit is contained in:
Hardik Zinzuvadiya 2023-10-14 18:26:49 +05:30 committed by GitHub
commit 89cfefaf05
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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