diff options
author | Chris Larson <clarson@kergoth.com> | 2003-06-14 17:29:02 +0000 |
---|---|---|
committer | Chris Larson <clarson@kergoth.com> | 2003-06-14 17:29:02 +0000 |
commit | d5a0f03495492caae450cc78f11d3f6fa7b0171b (patch) | |
tree | ffac3414dfad06ba612bcf6bf33bc12f57739335 /bin/oe/parse/__init__.py | |
parent | c8a03d912ca19107645fbc36ad98080bf54d68c4 (diff) | |
download | bitbake-d5a0f03495492caae450cc78f11d3f6fa7b0171b.tar.gz |
Adding recent .oe parser enhancements back into the new package.
Diffstat (limited to 'bin/oe/parse/__init__.py')
-rw-r--r-- | bin/oe/parse/__init__.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/bin/oe/parse/__init__.py b/bin/oe/parse/__init__.py index 459c5f158..8ff357452 100644 --- a/bin/oe/parse/__init__.py +++ b/bin/oe/parse/__init__.py @@ -10,7 +10,7 @@ Based on functions from the base oe module, Copyright 2003 Holger Schurig """ __version__ = '1.0' -__all__ = [ 'handlers', 'supports', 'handle' ] +__all__ = [ 'handlers', 'supports', 'handle', 'init' ] handlers = [] import ConfHandler @@ -29,3 +29,8 @@ def handle(fn, data = {}): if h['supports'](fn): return h['handle'](fn, data) return None + +def init(fn, data = {}): + for h in handlers: + if h['supports'](fn): + return h['init'](data) |