
import os
import sys

from importlib import import_module

from .version import __version__, __release_date__


if sys.version_info < (3, 3):
    print('rinohtype requires Python 3.3 or higher')
    sys.exit(1)


CORE_MODULES = ['annotation', 'color', 'dimension', 'document', 'draw', 'float',
                'flowable', 'highlight', 'index', 'inline', 'layout', 'number',
                'paper', 'paragraph', 'reference', 'structure', 'style',
                'table', 'text']

__all__ = CORE_MODULES + ['font', 'frontend', 'backend', 'styleds', 'styles']


DATA_PATH = os.path.join(os.path.abspath(os.path.dirname(__file__)), 'data')


# create proxies for the core classes/constants at the top level for easy access
for name in CORE_MODULES:
    module = import_module('.' + name, __name__)
    module_dict, module_all = module.__dict__, module.__all__
    globals().update({name: module_dict[name] for name in module_all})
    __all__ += module_all


import os
import sys

from importlib import import_module

from .version import __version__, __release_date__


if sys.version_info < (3, 3):
    print('rinohtype requires Python 3.3 or higher')
    sys.exit(1)


CORE_MODULES = ['annotation', 'attribute', 'color', 'dimension', 'document',
                'draw', 'element', 'float', 'flowable', 'highlight', 'index',
                'inline', 'layout', 'number', 'paper', 'paragraph',
                'reference', 'structure', 'style', 'table', 'template', 'text']

__all__ = CORE_MODULES + ['font', 'fonts', 'frontend', 'backend', 'resource',
                          'styleds', 'styles', 'stylesheets', 'templates',
                          'strings', 'language']


DATA_PATH = os.path.join(os.path.abspath(os.path.dirname(__file__)), 'data')


# create proxies for the core classes/constants at the top level for easy access
for name in CORE_MODULES:
    module = import_module('.' + name, __name__)
    module_dict, module_all = module.__dict__, module.__all__
    globals().update({name: module_dict[name] for name in module_all})
    __all__ += module_all

Update the top-level rinoh package
Update the top-level rinoh package

Make all symbols and modules relevant to users available directly
from the rinoh package.

  
  import os
  import sys
  
  from importlib import import_module
  
  from .version import __version__, __release_date__
  
  
  if sys.version_info < (3, 3):
      print('rinohtype requires Python 3.3 or higher')
      sys.exit(1)
  
  
- CORE_MODULES = ['annotation', 'color', 'dimension', 'document', 'draw', 'float',
+ CORE_MODULES = ['annotation', 'attribute', 'color', 'dimension', 'document',
-                 'flowable', 'highlight', 'index', 'inline', 'layout', 'number',
-                 'paper', 'paragraph', 'reference', 'structure', 'style',
-                 'table', 'text']
+                 'draw', 'element', 'float', 'flowable', 'highlight', 'index',
+                 'inline', 'layout', 'number', 'paper', 'paragraph',
+                 'reference', 'structure', 'style', 'table', 'template', 'text']
  
- __all__ = CORE_MODULES + ['font', 'frontend', 'backend', 'styleds', 'styles']
+ __all__ = CORE_MODULES + ['font', 'fonts', 'frontend', 'backend', 'resource',
+                           'styleds', 'styles', 'stylesheets', 'templates',
+                           'strings', 'language']
  
  
  DATA_PATH = os.path.join(os.path.abspath(os.path.dirname(__file__)), 'data')
  
  
  # create proxies for the core classes/constants at the top level for easy access
  for name in CORE_MODULES:
      module = import_module('.' + name, __name__)
      module_dict, module_all = module.__dict__, module.__all__
      globals().update({name: module_dict[name] for name in module_all})
      __all__ += module_all
  
Update the top-level rinoh package
## Code Before:

import os
import sys

from importlib import import_module

from .version import __version__, __release_date__


if sys.version_info < (3, 3):
    print('rinohtype requires Python 3.3 or higher')
    sys.exit(1)


CORE_MODULES = ['annotation', 'color', 'dimension', 'document', 'draw', 'float',
                'flowable', 'highlight', 'index', 'inline', 'layout', 'number',
                'paper', 'paragraph', 'reference', 'structure', 'style',
                'table', 'text']

__all__ = CORE_MODULES + ['font', 'frontend', 'backend', 'styleds', 'styles']


DATA_PATH = os.path.join(os.path.abspath(os.path.dirname(__file__)), 'data')


# create proxies for the core classes/constants at the top level for easy access
for name in CORE_MODULES:
    module = import_module('.' + name, __name__)
    module_dict, module_all = module.__dict__, module.__all__
    globals().update({name: module_dict[name] for name in module_all})
    __all__ += module_all

## Instruction:
Update the top-level rinoh package
## Code After:

import os
import sys

from importlib import import_module

from .version import __version__, __release_date__


if sys.version_info < (3, 3):
    print('rinohtype requires Python 3.3 or higher')
    sys.exit(1)


CORE_MODULES = ['annotation', 'attribute', 'color', 'dimension', 'document',
                'draw', 'element', 'float', 'flowable', 'highlight', 'index',
                'inline', 'layout', 'number', 'paper', 'paragraph',
                'reference', 'structure', 'style', 'table', 'template', 'text']

__all__ = CORE_MODULES + ['font', 'fonts', 'frontend', 'backend', 'resource',
                          'styleds', 'styles', 'stylesheets', 'templates',
                          'strings', 'language']


DATA_PATH = os.path.join(os.path.abspath(os.path.dirname(__file__)), 'data')


# create proxies for the core classes/constants at the top level for easy access
for name in CORE_MODULES:
    module = import_module('.' + name, __name__)
    module_dict, module_all = module.__dict__, module.__all__
    globals().update({name: module_dict[name] for name in module_all})
    __all__ += module_all
