summaryrefslogtreecommitdiff
path: root/examples/py-flow-muliprocess
diff options
context:
space:
mode:
Diffstat (limited to 'examples/py-flow-muliprocess')
-rwxr-xr-xexamples/py-flow-muliprocess/py-flow-multiprocess.py11
1 files changed, 3 insertions, 8 deletions
diff --git a/examples/py-flow-muliprocess/py-flow-multiprocess.py b/examples/py-flow-muliprocess/py-flow-multiprocess.py
index b90ab536d..9014c5f59 100755
--- a/examples/py-flow-muliprocess/py-flow-multiprocess.py
+++ b/examples/py-flow-muliprocess/py-flow-multiprocess.py
@@ -4,16 +4,11 @@ import multiprocessing
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
-except ImportError:
- sys.path.append(os.path.dirname(sys.argv[0]) + '/../../dependencies')
- import nDPIsrvd
- from nDPIsrvd import nDPIsrvdSocket
-
+import nDPIsrvd
+from nDPIsrvd import nDPIsrvdSocket
def mp_worker(unused, shared_flow_dict):
import time