From 457c257e0089253c3c5a540047ff53e5af1cc8ff Mon Sep 17 00:00:00 2001 From: Yaroslav Brustinov Date: Wed, 28 Sep 2016 13:37:09 +0300 Subject: stl api - importing profile: use given directory as first path, not last --- .../automation/trex_control_plane/stl/trex_stl_lib/trex_stl_streams.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_streams.py') 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] -- cgit 1.2.3-korg