(match)
| 297 | |
| 298 | |
| 299 | def replace_path_generic(match): |
| 300 | start_quote = match.group(1) |
| 301 | original_path = match.group(2) |
| 302 | end_quote = match.group(3) |
| 303 | |
| 304 | if Path(original_path).is_absolute(): |
| 305 | return match.group(0) |
| 306 | |
| 307 | absolute_path = data_directory / original_path |
| 308 | |
| 309 | return f"r'{absolute_path}'" |
| 310 | |
| 311 | processed_code = code_content |
| 312 | for pattern in patterns: |
nothing calls this directly
no outgoing calls
no test coverage detected