stl api - importing profile: use given directory as first path, not last
authorYaroslav Brustinov <[email protected]>
Wed, 28 Sep 2016 10:37:09 +0000 (13:37 +0300)
committerYaroslav Brustinov <[email protected]>
Wed, 28 Sep 2016 10:37:09 +0000 (13:37 +0300)
scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_streams.py

index f969410..e63f912 100755 (executable)
@@ -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]