replace backslashes with regular slashes

This commit is contained in:
Robin Müller 2022-03-22 11:11:32 +01:00
parent 8a2caf120d
commit 1c9f3eccef
No known key found for this signature in database
GPG Key ID: 71B58F8A3CDFA9AC

View File

@ -229,6 +229,8 @@ class EventParser(FileParser):
pass pass
if self.obsw_root_path is not None: if self.obsw_root_path is not None:
file_name = os.path.relpath(file_name, self.obsw_root_path) file_name = os.path.relpath(file_name, self.obsw_root_path)
# Replace backslashes with regular slashes
file_name.replace("\\", "/")
self.mib_table.update( self.mib_table.update(
{full_id: (string_to_add, severity, description, file_name)} {full_id: (string_to_add, severity, description, file_name)}
) )