Skip to content

Commit

Permalink
Don't use find utility to find ebin directories.
Browse files Browse the repository at this point in the history
Change-Id: I1375fc47e73d1c4a1449d4df88a99cb65c259f7b
Reviewed-on: http://review.couchbase.org/35007
Tested-by: Aliaksey Artamonau <aliaksiej.artamonau@gmail.com>
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
  • Loading branch information
aartamonau authored and alk committed Mar 27, 2014
1 parent ec95de2 commit 8832984
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions cluster_run
Expand Up @@ -21,8 +21,14 @@ PREFIX = config['prefix']

def setup_path():
def ebin_search(path):
return subprocess.Popen(["find", path, "-name", "ebin", "-type", "d"],
stdout=subprocess.PIPE).communicate()[0].split()
dirs = os.walk(path)
ebins = []

for d, _, _ in dirs:
if os.path.basename(d) == "ebin":
ebins.append(d)

return ebins

path = ebin_search(".")
couchpath = ebin_search("{0}/lib/couchdb/erlang/lib".format(PREFIX))
Expand Down

0 comments on commit 8832984

Please sign in to comment.