def relative_flat_glob(dirname, basename):
 if os.path.exists(os.path.join(dirname, basename)):
  return [basename]
 return []

def relative_flat_glob ( dirname , basename ) : if os . path . exists ( os . path . join ( dirname , basename ) ) : return [ basename ] return [ ]
non-recursive glob for one directory .