def sett():
    # TODO pytest-datadir pytest-datafiles      vs       (   path.dirname( path.realpath(sys.argv[0]) )
    settings_file = os.path.dirname(os.path.dirname(
        os.path.abspath(__file__))) + os.sep + "config_tests.ini"
    return settings.Settings(Logger(), 5, ini_file=settings_file)
Esempio n. 2
0
maya_window = get_maya_window()


simbatch = simbatch_core.SimBatch("Maya", ini_file=simbatch_config_ini)
simbatch_server = simbatch_server.SimBatchServer(simbatch, framework_mode=True)


"""   force reload core   """
import simbatch.core.lib.logger as simbatch_logger
reload(simbatch_logger)
simbatch.logger = simbatch_logger.Logger()

import simbatch.core.settings as simbatch_settings
reload(simbatch_settings)
simbatch.sts = simbatch_settings.Settings(simbatch.logger, "Maya", ini_file=simbatch_config_ini)

import simbatch.core.lib.common as simbatch_comfun
reload(simbatch_comfun)
simbatch.comfun = simbatch_comfun.CommonFunctions(simbatch.logger)

import simbatch.core.projects as simbatch_projects
reload(simbatch_projects)
simbatch.prj = simbatch_projects.Projects(simbatch)

import simbatch.core.schemas as simbatch_schemas
reload(simbatch_schemas)
simbatch.sch = simbatch_schemas.Schemas(simbatch)

import simbatch.core.tasks as simbatch_tasks
reload(simbatch_tasks)
Esempio n. 3
0
def settings():
    # TODO pytest-datadir pytest-datafiles
    return sett.Settings(Logger(), 5, ini_file="config_tests.ini")
def sett():
    #return settings.Settings(Logger(), 5)
    return settings.Settings(Logger(), 5, ini_path="tests")
def sett():
    # TODO pytest-datadir pytest-datafiles      vs       (   path.dirname( path.realpath(sys.argv[0]) )
    # return core.SimBatch(5, ini_file="S:/simbatch/tests/config_tests.ini")
    return settings.Settings(Logger(), 5, ini_file="config_tests.ini")