()
| 6 | |
| 7 | |
| 8 | def get_processor(): |
| 9 | # Convoluted because we can't import from numpy.distutils |
| 10 | # (numpy is not yet built) |
| 11 | conv_template_path = os.path.join( |
| 12 | os.path.dirname(__file__), |
| 13 | '..', 'distutils', 'conv_template.py' |
| 14 | ) |
| 15 | spec = importlib.util.spec_from_file_location( |
| 16 | 'conv_template', conv_template_path |
| 17 | ) |
| 18 | mod = importlib.util.module_from_spec(spec) |
| 19 | spec.loader.exec_module(mod) |
| 20 | return mod.process_file |
| 21 | |
| 22 | |
| 23 | def process_and_write_file(fromfile, outfile): |
no test coverage detected