1.1 --- a/imiptools/stores/manifest.py Tue Jan 31 16:18:55 2017 +0100
1.2 +++ b/imiptools/stores/manifest.py Sun Feb 05 22:16:24 2017 +0100
1.3 @@ -1,8 +1,37 @@
1.4 -stores = {}
1.5 +#!/usr/bin/env python
1.6 +
1.7 +"""
1.8 +Store manifest.
1.9 +
1.10 +Copyright (C) 2017 Paul Boddie <paul@boddie.org.uk>
1.11 +
1.12 +This program is free software; you can redistribute it and/or modify it under
1.13 +the terms of the GNU General Public License as published by the Free Software
1.14 +Foundation; either version 3 of the License, or (at your option) any later
1.15 +version.
1.16 +
1.17 +This program is distributed in the hope that it will be useful, but WITHOUT
1.18 +ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
1.19 +FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
1.20 +details.
1.21
1.22 -from imiptools.stores import file
1.23 -stores['file'] = file
1.24 +You should have received a copy of the GNU General Public License along with
1.25 +this program. If not, see <http://www.gnu.org/licenses/>.
1.26 +"""
1.27 +
1.28 +from imiptools.imports import get_extensions
1.29 +from os.path import split
1.30 +
1.31 +reserved = ["__init__", "common", "manifest"]
1.32
1.33 -from imiptools.stores.database import postgresql
1.34 -stores['postgresql'] = postgresql
1.35 +# Obtain details of this module's package.
1.36 +
1.37 +dirname = split(__file__)[0]
1.38 +package = __name__.rsplit(".", 1)[0]
1.39
1.40 +# Define an attribute mapping names to modules.
1.41 +
1.42 +stores = {}
1.43 +get_extensions(dirname, package, stores, reserved)
1.44 +
1.45 +# vim: tabstop=4 expandtab shiftwidth=4