(match)
| 337 | |
| 338 | |
| 339 | def replace_path_generic(match): |
| 340 | start_quote = match.group(1) |
| 341 | original_path = match.group(2) |
| 342 | end_quote = match.group(3) |
| 343 | |
| 344 | if Path(original_path).is_absolute(): |
| 345 | return match.group(0) |
| 346 | |
| 347 | absolute_path = data_directory / original_path |
| 348 | |
| 349 | return f"r'{absolute_path}'" |
| 350 | |
| 351 | processed_code = code_content |
| 352 | for pattern in patterns: |
nothing calls this directly
no outgoing calls
no test coverage detected