summaryrefslogtreecommitdiff
path: root/buildscripts/resmokelib
diff options
context:
space:
mode:
authorRobert Guo <robert.guo@mongodb.com>2019-08-16 18:05:28 +0000
committerevergreen <evergreen@mongodb.com>2019-08-16 18:05:28 +0000
commit7840efc54d798925ea04c9a5f8c3ec8a281d4d3c (patch)
tree76407edc4ddc12d659414d4374e6510e5d5e51cc /buildscripts/resmokelib
parent9adf729fdb062d619e422c81617b86c6ea759166 (diff)
downloadmongo-7840efc54d798925ea04c9a5f8c3ec8a281d4d3c.tar.gz
SERVER-42849 have resmoke.py look in cwd for binaries first
Diffstat (limited to 'buildscripts/resmokelib')
-rw-r--r--buildscripts/resmokelib/core/programs.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/buildscripts/resmokelib/core/programs.py b/buildscripts/resmokelib/core/programs.py
index dd800301233..a000f34e8d3 100644
--- a/buildscripts/resmokelib/core/programs.py
+++ b/buildscripts/resmokelib/core/programs.py
@@ -48,7 +48,7 @@ def make_process(*args, **kwargs):
process_kwargs = kwargs.get("process_kwargs", {}).copy()
env_vars = process_kwargs.get("env_vars", {}).copy()
path = [env_vars.get("PATH", os.environ.get("PATH", ""))]
- path.extend([os.getcwd(), config.DEFAULT_MULTIVERSION_DIR])
+ path = [os.getcwd(), config.DEFAULT_MULTIVERSION_DIR] + path
env_vars["PATH"] = os.pathsep.join(path)
kwargs["env_vars"] = env_vars
return process_cls(*args, **kwargs)