def _find_exe(path, exe_list):
 for filename in os.listdir(path):
  if os.path.isfile(os.path.join(path, filename)):
   if ('.exe' in filename):
    exe_list.append(((path + '\\') + filename))
  else:
   exe_list = _find_exe(((path + '\\') + filename), exe_list)
 return exe_list

def _find_exe ( path , exe_list ) : for filename in os . listdir ( path ) : if os . path . isfile ( os . path . join ( path , filename ) ) : if ( '.exe' in filename ) : exe_list . append ( ( ( path + '\\' ) + filename ) ) else : exe_list = _find_exe ( ( ( path + '\\' ) + filename ) , exe_list ) return exe_list
return a list of all exes in path .