From e720b61a3d1f9e6537e73e0e36cdc430d7974997 Mon Sep 17 00:00:00 2001 From: chrisdoman Date: Mon, 30 Jan 2017 10:48:47 -0600 Subject: [PATCH] Updated base dir to self Allows calling from unit test, still works on command line --- otx-suricata/suricata.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/otx-suricata/suricata.py b/otx-suricata/suricata.py index 15f1228..ded5798 100755 --- a/otx-suricata/suricata.py +++ b/otx-suricata/suricata.py @@ -27,7 +27,7 @@ class SuricataClient(object): return open(self.get_path(param), mode='w') def get_path(self, param): - return os.path.join(base_dir, param) + return os.path.join(self.base_dir, param) def generate_rules(self, generate_md5_rules=False, generate_iprep=False): with self.get_destination('otx_file_rules.rules') as file_rule_file: