diff options
author | 2016-01-11 04:30:39 -0500 | |
---|---|---|
committer | 2016-01-11 05:48:04 -0500 | |
commit | 816e2e3b844c009efe698adc97cd67286e13584e (patch) | |
tree | 86792e42cdaa332346c18a6c5f79cd1bdfc9a1fb /scripts/automation/trex_control_plane/client_utils | |
parent | 8ef7485303273dbdf9291cc16c6f32450786333e (diff) |
small problem in the stl simulation
Diffstat (limited to 'scripts/automation/trex_control_plane/client_utils')
-rwxr-xr-x | scripts/automation/trex_control_plane/client_utils/external_packages.py | 9 |
1 files changed, 6 insertions, 3 deletions
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() - |