You've already forked hackingtool
mirror of
https://github.com/Z4nzu/hackingtool.git
synced 2025-06-20 06:15:54 +02:00
Issue #415: Added code to access parent directory for fixing import error for core.py
Fixed Import Error: Issue #415
This commit is contained in:
@ -1,6 +1,13 @@
|
|||||||
# coding=utf-8
|
# coding=utf-8
|
||||||
import os
|
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 HackingTool
|
||||||
from core import HackingToolsCollection
|
from core import HackingToolsCollection
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user