From 8246b382b732a9b49c49a012274cd17ce1af4e94 Mon Sep 17 00:00:00 2001
From: Nathan Wilcox <inoshiro@lindenlab.com>
Date: Fri, 8 Jan 2010 18:00:32 -0800
Subject: [PATCH] DEV-44838 - find_in_path() returns a list of candidates. 
 Select the first.

---
 indra/develop.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/indra/develop.py b/indra/develop.py
index e19ecb7314c..17ac1b38016 100755
--- a/indra/develop.py
+++ b/indra/develop.py
@@ -588,7 +588,7 @@ def run(self, command, name=None, retry_on=None, retries=1):
         '''Run a program.  If the program fails, raise an exception.'''
         assert name is not None, 'On windows an executable path must be given in name.'
         if not os.path.isfile(name):
-            name = self.find_in_path(name)
+            name = self.find_in_path(name)[0]
         while retries:
             retries = retries - 1
             print "develop.py tries to run:", command
-- 
GitLab