rust/src/test/run-make-fulldeps/coverage-reports/normalize_paths.py

11 lines
241 B
Python
Raw Normal View History

#!/usr/bin/env python
import sys
# Normalize file paths in output
for line in sys.stdin:
if line.startswith("..") and line.rstrip().endswith(".rs:"):
print(line.replace("\\", "/"), end='')
else:
print(line, end='')