From e26622c95aa0a57a18aaf85cd250d78de3bf3163 Mon Sep 17 00:00:00 2001 From: TrustedSec Date: Tue, 27 Sep 2016 11:15:03 -0400 Subject: [PATCH] fix path issue for local setoolkit --- seautomate | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/seautomate b/seautomate index 9b533d22a..c6f891678 100755 --- a/seautomate +++ b/seautomate @@ -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")