summaryrefslogtreecommitdiffstats
path: root/scripts/automation/trex_control_plane/server
diff options
context:
space:
mode:
authorimarom <imarom@cisco.com>2015-12-27 09:20:59 +0200
committerimarom <imarom@cisco.com>2015-12-27 09:20:59 +0200
commit5c24b9f7738bb5db691e91db991d80082d521ffa (patch)
treeffef19d0880fb450dbfbcff2ca18523542c99e76 /scripts/automation/trex_control_plane/server
parent17a753731d3c66d62943fb39652f16e88ad552e7 (diff)
updated server pacakges include for ZMQ
Diffstat (limited to 'scripts/automation/trex_control_plane/server')
-rwxr-xr-xscripts/automation/trex_control_plane/server/outer_packages.py12
1 files changed, 8 insertions, 4 deletions
diff --git a/scripts/automation/trex_control_plane/server/outer_packages.py b/scripts/automation/trex_control_plane/server/outer_packages.py
index 2234c734..3d4f039a 100755
--- a/scripts/automation/trex_control_plane/server/outer_packages.py
+++ b/scripts/automation/trex_control_plane/server/outer_packages.py
@@ -3,13 +3,14 @@
import sys
import os
-CURRENT_PATH = os.path.dirname(os.path.realpath(__file__))
-ROOT_PATH = os.path.abspath(os.path.join(CURRENT_PATH, os.pardir)) # path to trex_control_plane directory
-PATH_TO_PYTHON_LIB = os.path.abspath(os.path.join(ROOT_PATH, os.pardir, os.pardir, 'external_libs'))
+CURRENT_PATH = os.path.dirname(os.path.realpath(__file__))
+ROOT_PATH = os.path.abspath(os.path.join(CURRENT_PATH, os.pardir)) # path to trex_control_plane directory
+PATH_TO_PYTHON_LIB = os.path.abspath(os.path.join(ROOT_PATH, os.pardir, os.pardir, 'external_libs'))
+PATH_TO_PLATFORM_LIB = os.path.abspath(os.path.join(PATH_TO_PYTHON_LIB, 'platform/fedora18'))
SERVER_MODULES = ['enum34-1.0.4',
- 'jsonrpclib-pelix-0.2.5',
'zmq',
+ 'jsonrpclib-pelix-0.2.5',
'python-daemon-2.0.5',
'lockfile-0.10.2',
'termstyle'
@@ -19,6 +20,7 @@ SERVER_MODULES = ['enum34-1.0.4',
def import_server_modules():
# must be in a higher priority
sys.path.insert(0, PATH_TO_PYTHON_LIB)
+ sys.path.insert(0, PATH_TO_PLATFORM_LIB)
sys.path.append(ROOT_PATH)
import_module_list(SERVER_MODULES)
@@ -30,4 +32,6 @@ def import_module_list(modules_list):
fix_path = os.path.normcase(full_path)
sys.path.insert(1, full_path)
+
import_server_modules()
+