MCPcopy Index your code
hub / github.com/qilingframework/qiling / select_os

Function select_os

qiling/utils.py:409–416  ·  view source on GitHub ↗
(ostype: QL_OS)

Source from the content-addressed store, hash-verified

407
408
409def select_os(ostype: QL_OS) -> QlClassInit['QlOs']:
410 qlos_name = ostype.name
411 qlos_path = f'.os.{qlos_name.lower()}.{qlos_name.lower()}'
412 qlos_class = f'QlOs{qlos_name.capitalize()}'
413
414 obj = ql_get_module_function(qlos_path, qlos_class)
415
416 return partial(obj)
417
418
419def profile_setup(ostype: QL_OS, user_config: Optional[Union[str, dict]]):

Callers 1

__init__Method · 0.85

Calls 1

ql_get_module_functionFunction · 0.85

Tested by

no test coverage detected