summaryrefslogtreecommitdiffstats
path: root/scripts/automation
diff options
context:
space:
mode:
authorimarom <imarom@cisco.com>2016-03-23 15:03:45 +0200
committerimarom <imarom@cisco.com>2016-03-23 15:03:45 +0200
commite9ab260a5fa47604406e1e9432d0036dc8fd9928 (patch)
treea9dc8b45d6a1a0aa02ef6ff388746731c1ebb7bd /scripts/automation
parent552aaf480a7b994beb33b49fceccfcc9923e918d (diff)
fix for breakage in the doc
Diffstat (limited to 'scripts/automation')
-rwxr-xr-xscripts/automation/trex_control_plane/client/trex_client.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/automation/trex_control_plane/client/trex_client.py b/scripts/automation/trex_control_plane/client/trex_client.py
index 68c70119..dfd3dc01 100755
--- a/scripts/automation/trex_control_plane/client/trex_client.py
+++ b/scripts/automation/trex_control_plane/client/trex_client.py
@@ -3,7 +3,11 @@
import sys
import os
-import client.outer_packages
+if __package__:
+ from . import outer_packages
+else:
+ import outer_packages
+
import jsonrpclib
from jsonrpclib import ProtocolError, AppError
from common.trex_status_e import TRexStatus