diff options
author | 2015-10-14 03:03:22 +0300 | |
---|---|---|
committer | 2015-10-14 03:03:22 +0300 | |
commit | 22cab506c9df614f6f74fd3641b1ec8cf084370b (patch) | |
tree | 2d60e17f5717f3edcf98c1e9637ff8effe2fef1d /scripts/automation/trex_control_plane/client | |
parent | 4c797902441d1c61fc9012f56ecf95e17cb26110 (diff) | |
parent | 508703e11a3fad3e44535c5433f803d77f28e245 (diff) |
Merge branch 'dan_stateless'
Diffstat (limited to 'scripts/automation/trex_control_plane/client')
-rwxr-xr-x | scripts/automation/trex_control_plane/client/outer_packages.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/scripts/automation/trex_control_plane/client/outer_packages.py b/scripts/automation/trex_control_plane/client/outer_packages.py index 5facad20..206d4b4c 100755 --- a/scripts/automation/trex_control_plane/client/outer_packages.py +++ b/scripts/automation/trex_control_plane/client/outer_packages.py @@ -1,7 +1,6 @@ #!/router/bin/python
import sys
-import site
import os
CURRENT_PATH = os.path.dirname(os.path.realpath(__file__))
@@ -25,6 +24,6 @@ def import_module_list(modules_list): for p in modules_list:
full_path = os.path.join(PATH_TO_PYTHON_LIB, p)
fix_path = os.path.normcase(full_path) # (CURRENT_PATH+p)
- site.addsitedir(full_path)
+ sys.path.insert(1, full_path)
import_client_modules()
|