Mercurial > hg > pyloader
comparison pyloader/factory.py @ 47:2384ab3999b7
get wrapper section
| author | Jeff Hammel <jhammel@mozilla.com> |
|---|---|
| date | Wed, 08 Jun 2011 21:19:22 -0700 |
| parents | f7d1238d1bd1 |
| children | 03e03668f546 |
comparison
equal
deleted
inserted
replaced
| 46:f7d1238d1bd1 | 47:2384ab3999b7 |
|---|---|
| 122 name, path = section.split(':', 1) | 122 name, path = section.split(':', 1) |
| 123 | 123 |
| 124 # interpret decorators | 124 # interpret decorators |
| 125 if ':' in path: | 125 if ':' in path: |
| 126 wrapper, _path = path.split(':', 1) | 126 wrapper, _path = path.split(':', 1) |
| 127 # TODO: could interpolate wrapper | 127 # TODO: could interpolate wrapper |
| 128 if wrapper in names: | 128 if wrapper in names: |
| 129 wrapper_section = names[wrapper] | |
| 129 | 130 |
| 130 path = _path | 131 path = _path |
| 131 | 132 |
| 132 # make a dict for the section | 133 # make a dict for the section |
| 133 path = path % defaults | 134 path = path % defaults |
