Пример #1
0
def load_dynamic_engine(id, sopath):
    """Load and return dymanic engine from sopath and assign id to it"""
    m2.engine_load_dynamic()
    e = Engine('dynamic')
    e.ctrl_cmd_string("SO_PATH", sopath)
    e.ctrl_cmd_string("ID", id)
    e.ctrl_cmd_string("LIST_ADD", "1")
    e.ctrl_cmd_string("LOAD", None)
    return e
Пример #2
0
def load_dynamic_engine(id, sopath):
    """Load and return dymanic engine from sopath and assign id to it"""
    m2.engine_load_dynamic()
    e = Engine('dynamic')
    e.ctrl_cmd_string("SO_PATH", sopath)
    e.ctrl_cmd_string("ID", id)
    e.ctrl_cmd_string("LIST_ADD", "1")
    e.ctrl_cmd_string("LOAD", None)
    return e
Пример #3
0
def load_dynamic_engine(id, sopath):
    # type: (bytes, AnyStr) -> Engine
    """Load and return dymanic engine from sopath and assign id to it"""
    if isinstance(sopath, six.text_type):
        sopath = sopath.encode('utf8')
    m2.engine_load_dynamic()
    e = Engine('dynamic')
    e.ctrl_cmd_string(b'SO_PATH', sopath)
    e.ctrl_cmd_string(b'ID', id)
    e.ctrl_cmd_string(b'LIST_ADD', '1')
    e.ctrl_cmd_string(b'LOAD', None)
    return e
Пример #4
0
def load_dynamic_engine(id, sopath):
    # type: (bytes, AnyStr) -> Engine
    """Load and return dymanic engine from sopath and assign id to it"""
    if isinstance(sopath, six.text_type):
        sopath = sopath.encode('utf8')
    m2.engine_load_dynamic()
    e = Engine('dynamic')
    e.ctrl_cmd_string(b'SO_PATH', sopath)
    e.ctrl_cmd_string(b'ID', id)
    e.ctrl_cmd_string(b'LIST_ADD', '1')
    e.ctrl_cmd_string(b'LOAD', None)
    return e
Пример #5
0
def load_dynamic():
    """Load dynamic engine"""
    m2.engine_load_dynamic()
Пример #6
0
def load_dynamic():
    # type: () -> None
    """Load dynamic engine"""
    m2.engine_load_dynamic()
Пример #7
0
def load_dynamic():
    """Load dynamic engine"""
    m2.engine_load_dynamic()
Пример #8
0
def load_dynamic():
    # type: () -> None
    """Load dynamic engine"""
    m2.engine_load_dynamic()