aboutsummaryrefslogtreecommitdiffstats
path: root/resources/libraries/python/TrafficScriptExecutor.py
diff options
context:
space:
mode:
authorCarsten Koester <ckoester@cisco.com>2016-05-25 17:52:01 -0400
committerDave Wallace <dwallacelf@gmail.com>2016-06-02 16:51:10 +0000
commit5eb99d868051556dce3d509545d130971d74e1fa (patch)
treeb1bc04fad4c2bbb01e4e52f89b8ae4454618452f /resources/libraries/python/TrafficScriptExecutor.py
parentc6d2b44a6c8cd5184f9b923889de6d4f2cc529ad (diff)
CSIT-114: Eliminate repeated download of PIP packages
Allow VirtualEnv to use existing system-wide packages if they already exist. Change-Id: I6f39178d56e81affea0bee7b9065bef66712ddaa Signed-off-by: Carsten Koester <ckoester@cisco.com>
Diffstat (limited to 'resources/libraries/python/TrafficScriptExecutor.py')
-rw-r--r--resources/libraries/python/TrafficScriptExecutor.py2
1 files changed, 1 insertions, 1 deletions
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/{} {}") \