#NEWLINE# def findAdobeDeploymentManager( dirpath ) : #NEWLINE# #INDENT# 'Searches dirpath and enclosed directories for AdobeDeploymentManager.\n    Returns path to the executable.' #NEWLINE# for ( path , dummy_dirs , dummy_files ) in os . walk ( dirpath ) : #NEWLINE# #INDENT# if path . endswith ( 'pkg/Contents/Resources' ) : #NEWLINE# #INDENT# dm_path = os . path . join ( path , 'AdobeDeploymentManager' ) #NEWLINE# if os . path . exists ( dm_path ) : #NEWLINE# #INDENT# return dm_path #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# return ''