Get the file path for a module without importing it. For synthesized empty __init__.py modules, returns module_name as a fake file path.
(module_name)
| 43 | |
| 44 | |
| 45 | def get_module_file_path(module_name): |
| 46 | """ |
| 47 | Get the file path for a module without importing it. |
| 48 | For synthesized empty __init__.py modules, returns module_name as a fake file path. |
| 49 | """ |
| 50 | return __res.importer.get_filename(module_name) |
| 51 | |
| 52 | |
| 53 | _BASE_PATHS = None |
no test coverage detected