def _absolute_flat_glob(pattern):
 (dirname, basename) = os.path.split(pattern)
 if basename:
  if os.path.exists(pattern):
   (yield pattern)
 elif os.path.isdir(dirname):
  (yield pattern)
 return

def _absolute_flat_glob ( pattern ) : ( dirname , basename ) = os . path . split ( pattern ) if basename : if os . path . exists ( pattern ) : ( yield pattern ) elif os . path . isdir ( dirname ) : ( yield pattern ) return
glob function for a pattern that do not contain wildcards .