parameters: (exeFiles, exePath)
return_statement: return result
docstring: Return a dictionary of MachO.Fixes of all recursive dependencies
docstring_summary: Return a dictionary of MachO.Fixes of all recursive dependencies
docstring_tokens: Return a dictionary of MachO . Fixes of all recursive dependencies
function: def findDependencies(exeFiles, exePath):
  	"Return a dictionary of MachO.Fixes of all recursive dependencies"
  	result = {}
  	
  	# allow some sloppyness:
  	if isinstance(exeFiles, str):
  		exeFiles = [MachO.Executable(exeFiles, "executable")]
  	elif isinstance(exeFiles, MachO.Executable):
  		exeFiles = [exeFiles]
  		
  	# go through executables and store Fixes		
  	todo = [x for x in exeFiles]
  	done = [x.Location for x in exeFiles]
  	while len(todo) > 0:
  		current = todo.pop()
  		print "getting dependencies for " + current.Location
  		for dep in current.getDependencies():
  			if dep.Link not in result:
  				if dep.findLocation(exePath):
  					result[dep.Link] = dep
  					# check if we need to traverse the referenced lib
  					if not dep.isSystem() and dep.Location not in done:
  						print "- adding " + dep.Location
  						done.append(dep.Location)
  						todo.append(MachO.Executable(dep.Location, "lib"))
  				else:
  					print ("couldn't find " + dep.Link + 
  							" -> " + dep.Location)
  
  	# forget any system dependencies
  	for k,fix in result.items():
  		if fix.isSystem():
  			del result[k]
  						
  	return result
function_tokens: def findDependencies ( exeFiles , exePath ) : result = { } # allow some sloppyness: if isinstance ( exeFiles , str ) : exeFiles = [ MachO . Executable ( exeFiles , "executable" ) ] elif isinstance ( exeFiles , MachO . Executable ) : exeFiles = [ exeFiles ] # go through executables and store Fixes		 todo = [ x for x in exeFiles ] done = [ x . Location for x in exeFiles ] while len ( todo ) > 0 : current = todo . pop ( ) print "getting dependencies for " + current . Location for dep in current . getDependencies ( ) : if dep . Link not in result : if dep . findLocation ( exePath ) : result [ dep . Link ] = dep # check if we need to traverse the referenced lib if not dep . isSystem ( ) and dep . Location not in done : print "- adding " + dep . Location done . append ( dep . Location ) todo . append ( MachO . Executable ( dep . Location , "lib" ) ) else : print ( "couldn't find " + dep . Link + " -> " + dep . Location ) # forget any system dependencies for k , fix in result . items ( ) : if fix . isSystem ( ) : del result [ k ] return result