-
Notifications
You must be signed in to change notification settings - Fork 15.5k
Open
Labels
compiler-rt:hwasanHardware-assisted address sanitizerHardware-assisted address sanitizerplatform:windows
Description
| paths_to_cut.append(os.getcwd() + '/') |
On Windows, os.getcwd() can return something like "C:\sdk\llvm...". The string with unescaped backslashes is then fed into re.sub():
| file_name = re.sub(".*" + path_to_cut, "", file_name) |
which results in an error:
re.error: bad escape \l at position 31
My workaround:
paths_to_cut.append(os.getcwd().replace("\\", "/") + '/')
Metadata
Metadata
Assignees
Labels
compiler-rt:hwasanHardware-assisted address sanitizerHardware-assisted address sanitizerplatform:windows