fix path issue for local setoolkit

This commit is contained in:
TrustedSec 2016-09-27 11:15:03 -04:00
parent 9fdd8356d9
commit e26622c95a

View file

@ -16,13 +16,14 @@ except NameError:
try:
reload
except NameError:
from importlib import reload
# check where we are and load default directory
if os.path.isdir("/usr/share/setoolkit"):
if not os.path.isfile("se-toolkit"):
if not os.path.isfile("setoolkit"):
os.chdir("/usr/share/setoolkit")
sys.path.append("/usr/share/setoolkit")