diff options
author | 2016-09-28 13:37:09 +0300 | |
---|---|---|
committer | 2016-09-28 13:37:09 +0300 | |
commit | 457c257e0089253c3c5a540047ff53e5af1cc8ff (patch) | |
tree | cb2b42b0758c39ee271aa60decd71674a0aee9a3 /scripts/automation/trex_control_plane/stl/trex_stl_lib | |
parent | 08aaabafd6a07491bb89324c1306e6e88ae46980 (diff) |
stl api - importing profile: use given directory as first path, not last
Diffstat (limited to 'scripts/automation/trex_control_plane/stl/trex_stl_lib')
-rwxr-xr-x | scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_streams.py | 2 |
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] |