(module_str)
| 65 | |
| 66 | |
| 67 | def create_module(module_str): |
| 68 | tmpss = module_str.split(",") |
| 69 | assert len(tmpss) == 2, "Error formate\ |
| 70 | of the module path: {}".format(module_str) |
| 71 | module_name, function_name = tmpss[0], tmpss[1] |
| 72 | somemodule = importlib.import_module(module_name, __package__) |
| 73 | function = getattr(somemodule, function_name) |
| 74 | return function |
| 75 | |
| 76 | |
| 77 | class RecMetric: |
no outgoing calls
no test coverage detected