summaryrefslogtreecommitdiffstats
path: root/net/test
diff options
context:
space:
mode:
authorakalin@chromium.org <akalin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-11-26 05:31:27 +0000
committerakalin@chromium.org <akalin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-11-26 05:31:27 +0000
commitf31a93fab3a781d0c78163fde7018a6bfcd53e6c (patch)
tree30e8603400cc959385dba525ca83315a11f7c7f2 /net/test
parentaa0ec16fae90dcaab246854ed0fdac317cd6e56f (diff)
downloadchromium_src-f31a93fab3a781d0c78163fde7018a6bfcd53e6c.zip
chromium_src-f31a93fab3a781d0c78163fde7018a6bfcd53e6c.tar.gz
chromium_src-f31a93fab3a781d0c78163fde7018a6bfcd53e6c.tar.bz2
Added third_party to python path for testserver.
This is split off from 5196001. BUG=53934 TEST=manually TBR=cbentzel Review URL: http://codereview.chromium.org/5370003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@67434 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/test')
-rw-r--r--net/test/test_server.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/net/test/test_server.cc b/net/test/test_server.cc
index 0e8c461..1ae2c5b 100644
--- a/net/test/test_server.cc
+++ b/net/test/test_server.cc
@@ -278,6 +278,11 @@ bool TestServer::SetPythonPath() {
}
third_party_dir = third_party_dir.Append(FILE_PATH_LITERAL("third_party"));
+ // For simplejson. (simplejson, unlike all the other python modules
+ // we include, doesn't have an extra 'simplejson' directory, so we
+ // need to include its parent directory, i.e. third_party_dir).
+ AppendToPythonPath(third_party_dir);
+
AppendToPythonPath(third_party_dir.Append(FILE_PATH_LITERAL("tlslite")));
AppendToPythonPath(third_party_dir.Append(FILE_PATH_LITERAL("pyftpdlib")));