mirror of
https://gitlab.com/openlp/runners.git
synced 2024-12-22 11:22:48 +00:00
Merge branch 'update-for-windows' into 'master'
Adapt 'fixpaths' to detect Windows paths and 'convert' them See merge request openlp/runners!7
This commit is contained in:
commit
ef2872faaa
@ -18,6 +18,9 @@ def fix_paths(coverage_file):
|
|||||||
data.read_file(file_name)
|
data.read_file(file_name)
|
||||||
new_lines = {}
|
new_lines = {}
|
||||||
for fname, report in data._lines.items():
|
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_fname = os.path.join(base_path, fname.split('openlp/openlp/')[-1])
|
||||||
new_lines[new_fname] = report
|
new_lines[new_fname] = report
|
||||||
data._lines = new_lines
|
data._lines = new_lines
|
||||||
|
Loading…
Reference in New Issue
Block a user