Update path normalizing

parent f564a8ac
......@@ -112,7 +112,9 @@ class ConfigReader:
try:
for map_path, prefix in self.parse_yaml(yaml_file):
rel_map_path = os.path.relpath(map_path, start=yaml_dir)
abs_map_path = "{}/{}".format(yaml_dir, rel_map_path)
abs_map_path = os.path.join(rel_map_path, yaml_dir, os.path.basename(map_path))
abs_map_path = os.path.normpath(abs_map_path)
if map_file_name in abs_map_path:
res_prefix = prefix.split("/")[-1] # Last directory of map_path a project's name
with open(abs_map_path, "r") as file:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment