summaryrefslogtreecommitdiffstats
path: root/scripts/automation/trex_control_plane/stl/console/trex_console.py
diff options
context:
space:
mode:
authorYaroslav Brustinov <ybrustin@cisco.com>2016-03-31 23:33:14 +0300
committerYaroslav Brustinov <ybrustin@cisco.com>2016-03-31 23:33:14 +0300
commit8be43de7d790e43f608e0b918863da83731e738e (patch)
tree02a7df39a517fb5e9b6601a8829b907dec3199e5 /scripts/automation/trex_control_plane/stl/console/trex_console.py
parentcf6092b407c624ab8d6cf671e1e30bc981ed6826 (diff)
make the stl console to work at client package/from stl directory itself
Diffstat (limited to 'scripts/automation/trex_control_plane/stl/console/trex_console.py')
-rwxr-xr-xscripts/automation/trex_control_plane/stl/console/trex_console.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/scripts/automation/trex_control_plane/stl/console/trex_console.py b/scripts/automation/trex_control_plane/stl/console/trex_console.py
index 8c71065c..da4c4486 100755
--- a/scripts/automation/trex_control_plane/stl/console/trex_console.py
+++ b/scripts/automation/trex_control_plane/stl/console/trex_console.py
@@ -30,14 +30,20 @@ import os
import sys
import tty, termios
+try:
+ import stl_path
+except:
+ from . import stl_path
from trex_stl_lib.api import *
from trex_stl_lib.utils.text_opts import *
from trex_stl_lib.utils.common import user_input, get_current_user
from trex_stl_lib.utils import parsing_opts
-
-from . import trex_tui
+try:
+ import trex_tui
+except:
+ from . import trex_tui
from functools import wraps