Forum Archive

List of workflows?

franco

Is it possible to get a list with the names of my workflows? How?

omz
import os, editor, json

with open(os.path.join(editor.get_workflows_path(), 'Commands.edcmd'), 'r') as f:
    workflow_infos = json.load(f)
    workflow_titles = [w['title'] for w in workflow_infos]
print '\n'.join(workflow_titles)
franco

@omz thank you very much!