diff options
Diffstat (limited to 'resources/libraries')
-rw-r--r-- | resources/libraries/python/SetupFramework.py | 2 | ||||
-rw-r--r-- | resources/libraries/python/TrafficScriptExecutor.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/resources/libraries/python/SetupFramework.py b/resources/libraries/python/SetupFramework.py index ddc5514c4a..b81a3065c6 100644 --- a/resources/libraries/python/SetupFramework.py +++ b/resources/libraries/python/SetupFramework.py @@ -102,7 +102,7 @@ def create_env_directory_at_node(node): ssh = SSH() ssh.connect(node) (ret_code, stdout, stderr) = ssh.exec_command( - 'cd {0} && rm -rf env && virtualenv env && . env/bin/activate && ' + 'cd {0} && rm -rf env && virtualenv --system-site-packages env && . env/bin/activate && ' 'pip install -r requirements.txt' .format(con.REMOTE_FW_DIR), timeout=100) if 0 != ret_code: diff --git a/resources/libraries/python/TrafficScriptExecutor.py b/resources/libraries/python/TrafficScriptExecutor.py index fa4462393c..108b2b9815 100644 --- a/resources/libraries/python/TrafficScriptExecutor.py +++ b/resources/libraries/python/TrafficScriptExecutor.py @@ -52,7 +52,7 @@ class TrafficScriptExecutor(object): logger.trace("{}".format(timeout)) ssh = SSH() ssh.connect(node) - cmd = ("cd {}; virtualenv env && " + + cmd = ("cd {}; virtualenv --system-site-packages env && " + "export PYTHONPATH=${{PWD}}; " + ". ${{PWD}}/env/bin/activate; " + "resources/traffic_scripts/{} {}") \ |