mirror of
https://github.com/Z4nzu/hackingtool
synced 2024-11-14 11:53:01 +00:00
Merge pull request #416 from Harsh0707005/Harsh0707005-#415
Issue #415: Added code to access parent directory for fixing import error for core.py
This commit is contained in:
commit
89cfefaf05
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user