From 9db048c9d93a00adf4b258d2341b24229d2a45a1 Mon Sep 17 00:00:00 2001 From: Toni Uhlig Date: Sun, 27 Feb 2022 02:53:39 +0100 Subject: Serialize flow risk score / confidence. * bump libnDPI to 8b062295cc76a60e3905c054ce37bd17669464d1 * removed ndpi_id_struct's Signed-off-by: Toni Uhlig --- examples/py-json-stdout/json-stdout.py | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'examples/py-json-stdout') diff --git a/examples/py-json-stdout/json-stdout.py b/examples/py-json-stdout/json-stdout.py index 160a61e0c..bd27d7d80 100755 --- a/examples/py-json-stdout/json-stdout.py +++ b/examples/py-json-stdout/json-stdout.py @@ -3,15 +3,11 @@ import os import sys +sys.path.append(os.path.dirname(sys.argv[0]) + '/../../dependencies') sys.path.append(os.path.dirname(sys.argv[0]) + '/../share/nDPId') sys.path.append(os.path.dirname(sys.argv[0]) + '/../usr/share/nDPId') -try: - import nDPIsrvd - from nDPIsrvd import nDPIsrvdSocket, TermColor -except ImportError: - sys.path.append(os.path.dirname(sys.argv[0]) + '/../../dependencies') - import nDPIsrvd - from nDPIsrvd import nDPIsrvdSocket, TermColor +import nDPIsrvd +from nDPIsrvd import nDPIsrvdSocket, TermColor def onJsonLineRecvd(json_dict, instance, current_flow, global_user_data): print(json_dict) -- cgit v1.2.3