123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- # coding:utf-8
- #!/usr/bin/python
- #
- # Copyright (c) Contributors to the Open 3D Engine Project.
- # For complete copyright and license terms please see the LICENSE at the root of this distribution.
- #
- # SPDX-License-Identifier: Apache-2.0 OR MIT
- #
- #
- # -- This line is 75 characters -------------------------------------------
- # The __init__.py files help guide import statements without automatically
- # importing all of the modules
- """DCCsi.sdk.substance.builder.__init__"""
- from azpy.env_bool import env_bool
- from azpy.constants import ENVAR_DCCSI_DEV_MODE
- # global space
- _DCCSI_DEV_MODE = env_bool(ENVAR_DCCSI_DEV_MODE, False)
- _PACKAGENAME = __name__
- if _PACKAGENAME == '__main__':
- _PACKAGENAME = 'DCCsi.SDK.Substance.builder'
- import azpy
- _LOGGER = azpy.initialize_logger(_PACKAGENAME)
- _LOGGER.debug('Invoking __init__.py for {0}.'.format({_PACKAGENAME}))
- # -------------------------------------------------------------------------
- #
- __all__ = ['bootstrap',
- 'atom_material',
- 'sb_gui_main',
- 'sbs_to_sbsar',
- 'sbsar_info',
- 'sbsar_render',
- 'sbsar_utils',
- 'substance_tools',
- 'watchdog',
- 'ui']
- #
- # -------------------------------------------------------------------------
- if _DCCSI_DEV_MODE:
- # If in dev mode this will test imports of __all__
- from azpy import test_imports
- _LOGGER.debug('Testing Imports from {0}'.format(_PACKAGENAME))
- test_imports(__all__,
- _pkg=_PACKAGENAME,
- _logger=_LOGGER)
- # -------------------------------------------------------------------------
- del _LOGGER
|