HomePhabricator

pyolian: Add helper functions for simple scripts

Authored by lauromoura on Nov 26 2019, 6:56 AM.

Description

pyolian: Add helper functions for simple scripts

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)

Reviewers: segfaultxavi, DaveMDS, felipealmeida

Reviewed By: felipealmeida

Subscribers: cedric, reviewers, committers, felipealmeida, brunobelo

Tags: efl

Differential Revision: https://phab.enlightenment.org/D10589

Details

Committed
lauromouraNov 26 2019, 7:40 AM
Reviewer
felipealmeida
Differential Revision
D10589: pyolian: Add helper functions for simple scripts
Parents
rEFLabaa90cfc205: pyolian: Add a method to get the hierarchy of extensions
Branches
Unknown
Tags
Unknown