Pull the sc python package under the suricata top level
package. A suricatasc package still exists for compatibility
that pulls in suricata.sc.
if os.path.exists(path):
sys.path.insert(0, os.path.dirname(path))
-from suricatasc import *
+from suricata.sc import *
parser = argparse.ArgumentParser(prog='suricatasc', description='Client for Suricata unix socket')
parser.add_argument('-v', '--verbose', action='store_const', const=True, help='verbose output (including JSON dump)')
packages=[
"suricata",
"suricata.ctl",
+ "suricata.sc",
"suricatasc",
],
scripts=[
--- /dev/null
+from suricata.sc.suricatasc import *
-
-from suricatasc import *
+from suricata.sc import *