imip-agent

Annotated imiptools/stores/manifest.py

1363:96314da27b34
2017-10-24 Paul Boddie Updated materialise method usage.
paul@1216 1
#!/usr/bin/env python
paul@1216 2
paul@1216 3
"""
paul@1216 4
Store manifest.
paul@1216 5
paul@1216 6
Copyright (C) 2017 Paul Boddie <paul@boddie.org.uk>
paul@1216 7
paul@1216 8
This program is free software; you can redistribute it and/or modify it under
paul@1216 9
the terms of the GNU General Public License as published by the Free Software
paul@1216 10
Foundation; either version 3 of the License, or (at your option) any later
paul@1216 11
version.
paul@1216 12
paul@1216 13
This program is distributed in the hope that it will be useful, but WITHOUT
paul@1216 14
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
paul@1216 15
FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more
paul@1216 16
details.
paul@1207 17
paul@1216 18
You should have received a copy of the GNU General Public License along with
paul@1216 19
this program.  If not, see <http://www.gnu.org/licenses/>.
paul@1216 20
"""
paul@1216 21
paul@1216 22
from imiptools.imports import get_extensions
paul@1216 23
from os.path import split
paul@1216 24
paul@1216 25
reserved = ["__init__", "common", "manifest"]
paul@1207 26
paul@1216 27
# Obtain details of this module's package.
paul@1216 28
paul@1216 29
dirname = split(__file__)[0]
paul@1216 30
package = __name__.rsplit(".", 1)[0]
paul@1207 31
paul@1216 32
# Define an attribute mapping names to modules.
paul@1216 33
paul@1216 34
stores = {}
paul@1216 35
get_extensions(dirname, package, stores, reserved)
paul@1216 36
paul@1216 37
# vim: tabstop=4 expandtab shiftwidth=4