|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
try: |
|
|
from .__info__ import __version__, __author__, __doc__, __license__ |
|
|
except: |
|
|
import os |
|
|
import sys |
|
|
root = os.path.dirname(os.path.dirname(os.path.abspath(os.path.dirname(__file__)))) |
|
|
sys.path.append(root) |
|
|
|
|
|
from version import (__version__, __author__, |
|
|
get_license_text, get_readme_as_rst) |
|
|
__license__ = get_license_text(os.path.join(root, 'LICENSE')) |
|
|
__license__ = "\n%s" % __license__ |
|
|
__doc__ = get_readme_as_rst(os.path.join(root, 'README.md')) |
|
|
del os, sys, root, get_license_text, get_readme_as_rst |
|
|
|
|
|
|
|
|
import sys |
|
|
from . import context |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
__all__ = [x for x in dir(context._default_context) if not x.startswith('_')] |
|
|
globals().update((name, getattr(context._default_context, name)) for name in __all__) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
SUBDEBUG = 5 |
|
|
SUBWARNING = 25 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if '__main__' in sys.modules: |
|
|
sys.modules['__mp_main__'] = sys.modules['__main__'] |
|
|
|
|
|
|
|
|
def license(): |
|
|
"""print license""" |
|
|
print (__license__) |
|
|
return |
|
|
|
|
|
def citation(): |
|
|
"""print citation""" |
|
|
print (__doc__[-491:-118]) |
|
|
return |
|
|
|
|
|
|