Page MenuHomePhabricator

pyolian: Add helper functions for simple scripts
Needs ReviewPublic

Authored by lauromoura on Fri, Nov 1, 2:51 PM.

Details

Summary

These two functions encapsulate some code that commonly is repeated
through pyolian scripts.

With these, a minimal example (provided src/scripts/pyolian is in
the PYTHONPATH) could be done with:

import os

from pyolian import eolian

SCAN_FOLDER = os.path.join(eolian.in_tree_src_dir(), 'src', 'lib')
eolian_db = eolian.parse_folders(SCAN_FOLDER)

for cls in eolian_db.classes:
    print(cls)

Diff Detail

Repository
rEFL core/efl
Branch
master
Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 14322
Build 9852: arc lint + arc unit
lauromoura created this revision.Fri, Nov 1, 2:51 PM
lauromoura requested review of this revision.Fri, Nov 1, 2:51 PM
segfaultxavi resigned from this revision.Mon, Nov 4, 4:56 AM

I don't speak Python, sorry.