Loading [MathJax]/extensions/TeX/AMSsymbols.js
LALInference 4.1.9.1-8a6b96f
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
io/__init__.py
Go to the documentation of this file.
1# Copyright (C) 2016-2018 Leo Singer
2#
3# This program is free software; you can redistribute it and/or modify it
4# under the terms of the GNU General Public License as published by the
5# Free Software Foundation; either version 2 of the License, or (at your
6# option) any later version.
7#
8# This program is distributed in the hope that it will be useful, but
9# WITHOUT ANY WARRANTY; without even the implied warranty of
10# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
11# Public License for more details.
12#
13# You should have received a copy of the GNU General Public License along
14# with this program; if not, write to the Free Software Foundation, Inc.,
15# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16#
17from __future__ import absolute_import
18import os
19import pkgutil
20
21__all__ = ()
22
23# Import all symbols from all submodules of this module.
24for _, module, _ in pkgutil.iter_modules([os.path.dirname(__file__)]):
25 exec('from . import {0};'
26 '__all__ += getattr({0}, "__all__", ());'
27 'from .{0} import *'.format(module))
28 del module
29
30# Clean up
31del os, pkgutil