From 816e2e3b844c009efe698adc97cd67286e13584e Mon Sep 17 00:00:00 2001 From: imarom Date: Mon, 11 Jan 2016 04:30:39 -0500 Subject: small problem in the stl simulation --- .../trex_control_plane/client_utils/external_packages.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'scripts/automation/trex_control_plane/client_utils') diff --git a/scripts/automation/trex_control_plane/client_utils/external_packages.py b/scripts/automation/trex_control_plane/client_utils/external_packages.py index 9d8c4dcf..c41f8f2f 100755 --- a/scripts/automation/trex_control_plane/client_utils/external_packages.py +++ b/scripts/automation/trex_control_plane/client_utils/external_packages.py @@ -2,6 +2,7 @@ import sys import os +import warnings 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 @@ -48,6 +49,7 @@ def import_platform_dirs (): del zmq return except: + sys.path.pop(0) pass full_path = os.path.join(PATH_TO_PYTHON_LIB, 'platform/cel59') @@ -60,9 +62,10 @@ def import_platform_dirs (): return except: - raise Exception("unable to determine platform type for ZMQ import") - + sys.path.pop(0) + sys.modules['zmq'] = None + warnings.warn("unable to determine platform type for ZMQ import") + import_client_utils_modules() - -- cgit 1.2.3-korg