Пример #1
0
def init_ui(do_reload=False):
    tphoudini_importer = importer.init_importer(importer_class=tpHoudiniLib,
                                                do_reload=False)

    global logger
    logger = tphoudini_importer.logger

    tphoudini_importer.import_modules(skip_modules=['tpHoudiniLib.core'])
    tphoudini_importer.import_packages(only_packages=True,
                                       skip_modules=['tpHoudiniLib.core'])
    if do_reload:
        tphoudini_importer.reload_all()
Пример #2
0
def init(do_reload=False):
    """
    Initializes module
    :param do_reload: bool, Whether to reload modules or not
    """

    tpjointorient_importer = importer.init_importer(importer_class=tpJointOrient, do_reload=do_reload)

    global logger
    logger = tpjointorient_importer.logger

    tpjointorient_importer.import_modules()
    tpjointorient_importer.import_packages(only_packages=True)
    if do_reload:
        tpjointorient_importer.reload_all()
def init(do_reload=False):
    """
    Initializes module
    """

    packages_order = []

    assetsbuilder_importer = importer.init_importer(importer_class=AssetsBuilder, do_reload=False)
    assetsbuilder_importer.import_packages(order=packages_order, only_packages=False)
    if do_reload:
        assetsbuilder_importer.reload_all()

    create_logger_directory()

    resources_path = os.path.join(os.path.dirname(os.path.dirname(os.path.abspath(__file__))), 'resources')
    resource.ResourceManager.instance().register_resource(resources_path)
Пример #4
0
def init_dcc(do_reload=False):
    """
    Initializes module
    :param do_reload: bool, Whether to reload modules or not
    """

    tphoudini_importer = importer.init_importer(importer_class=tpHoudiniLib,
                                                do_reload=False)

    global logger
    logger = tphoudini_importer.logger

    tphoudini_importer.import_modules()
    tphoudini_importer.import_packages(only_packages=True)
    if do_reload:
        tphoudini_importer.reload_all()
def init(do_reload=False):
    """
    Initializes module
    """

    from artellapipe.tools import assetslibrary
    assetslibrary.init(do_reload=do_reload)

    packages_order = []

    assetslibrary_importer = importer.init_importer(
        importer_class=SolsticeAssetsLibrary, do_reload=False)
    assetslibrary_importer.import_packages(order=packages_order,
                                           only_packages=False)
    if do_reload:
        assetslibrary_importer.reload_all()

    create_logger_directory()

    resources_path = os.path.join(
        os.path.dirname(os.path.dirname(os.path.abspath(__file__))),
        'resources')
    resource.ResourceManager.instance().register_resource(resources_path)
Пример #6
0
def init(do_reload=False):
    """
    Initializes module
    :param do_reload: bool, Whether to reload modules or not
    """

    tpqtlib_importer = importer.init_importer(importer_class=tpQtLib,
                                              do_reload=False)
    tpqtlib_importer.update_paths()

    global logger
    global resource
    logger = tpqtlib_importer.logger
    resource = tpQtLibResource

    tpqtlib_importer.import_modules(skip_modules=['tpQtLib.externals'])
    tpqtlib_importer.import_packages(only_packages=True,
                                     skip_modules=['tpQtLib.externals'],
                                     order=['tpQtLib.core', 'tpQtLib.widgets'])
    if do_reload:
        tpqtlib_importer.reload_all()

    init_dcc(do_reload=do_reload)