def get_compatible():
 basedir = os.path.dirname(os.path.abspath('.'))
 workflow_dirs = [f for f in os.listdir(basedir) if os.path.isdir(os.path.join(basedir, f))]
 workflows = []
 for d in workflow_dirs:
  workflows.append(Workflow(os.path.join(basedir, d)))
 workflows = [w for w in workflows if w.alleyoop]
 autolog(('found %s compatible workflows' % len(workflows)))
 return sorted(workflows, key=(lambda x: x.name))

def get_compatible ( ) : basedir = os . path . dirname ( os . path . abspath ( '.' ) ) workflow_dirs = [ f for f in os . listdir ( basedir ) if os . path . isdir ( os . path . join ( basedir , f ) ) ] workflows = [ ] for d in workflow_dirs : workflows . append ( Workflow ( os . path . join ( basedir , d ) ) ) workflows = [ w for w in workflows if w . alleyoop ] autolog ( ( 'found %s compatible workflows' % len ( workflows ) ) ) return sorted ( workflows , key = ( lambda x : x . name ) )
gets a list if compatible workflows .