mirror of
https://gitlab.com/openlp/runners.git
synced 2024-12-22 11:22:48 +00:00
Adapt 'fixpaths' to detect Windows paths and 'convert' them
This commit is contained in:
parent
e8fa66189f
commit
4e2287a2a4
@ -18,6 +18,9 @@ def fix_paths(coverage_file):
|
||||
data.read_file(file_name)
|
||||
new_lines = {}
|
||||
for fname, report in data._lines.items():
|
||||
if fname.startswith('C:\\'):
|
||||
# This is a Windows path, let's fudge it
|
||||
fname = fname.replace('C:', '').replace('\\', '/')
|
||||
new_fname = os.path.join(base_path, fname.split('openlp/openlp/')[-1])
|
||||
new_lines[new_fname] = report
|
||||
data._lines = new_lines
|
||||
|
Loading…
Reference in New Issue
Block a user