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
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
def load_dynamic(): """Load dynamic engine""" m2.engine_load_dynamic()
def load_dynamic(): # type: () -> None """Load dynamic engine""" m2.engine_load_dynamic()