From 18c37dfdd060d413a7d382d231962dad5b064d10 Mon Sep 17 00:00:00 2001 From: Marcel Date: Mon, 16 Sep 2024 16:27:36 +0200 Subject: [PATCH] [bugfix] take care of more unescaped backslashes in Metadata --- pylot/core/util/dataprocessing.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pylot/core/util/dataprocessing.py b/pylot/core/util/dataprocessing.py index 19bed851..af75bdcf 100644 --- a/pylot/core/util/dataprocessing.py +++ b/pylot/core/util/dataprocessing.py @@ -59,6 +59,8 @@ class Metadata(object): :type path_to_inventory: str :return: None """ + path_to_inventory = path_to_inventory.replace('\\', '/') + path_to_inventory = os.path.abspath(path_to_inventory) assert (os.path.isdir(path_to_inventory)), '{} is no directory'.format(path_to_inventory) if path_to_inventory not in self.inventories: self.inventories.append(path_to_inventory)