summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYaroslav Brustinov <ybrustin@cisco.com>2016-09-28 13:37:09 +0300
committerYaroslav Brustinov <ybrustin@cisco.com>2016-09-28 13:37:09 +0300
commit457c257e0089253c3c5a540047ff53e5af1cc8ff (patch)
treecb2b42b0758c39ee271aa60decd71674a0aee9a3
parent08aaabafd6a07491bb89324c1306e6e88ae46980 (diff)
stl api - importing profile: use given directory as first path, not last
-rwxr-xr-xscripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_streams.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_streams.py b/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_streams.py
index f9694105..e63f9125 100755
--- a/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_streams.py
+++ b/scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_streams.py
@@ -945,7 +945,7 @@ class STLProfile(object):
raise STLError("File '{0}' does not exist".format(python_file))
basedir = os.path.dirname(python_file)
- sys.path.append(basedir)
+ sys.path.insert(0, basedir)
try:
file = os.path.basename(python_file).split('.')[0]