Commit 34fc92e2 authored by Soldatoff's avatar Soldatoff

Fixed the service redirector-whatch

parent 2c60ba57
......@@ -28,7 +28,7 @@ class RedirectorWatch:
yaml_dir = os.path.dirname(os.path.abspath(yaml_file))
for map_path, _ in self.parser.parse_yaml(yaml_file):
for map_path, _, _ in self.parser.parse_yaml(yaml_file):
rel_map_path = os.path.relpath(map_path, start=yaml_dir)
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)
......@@ -93,7 +93,7 @@ class RedirectorWatch:
def add_files(self, file_, wm):
file_list = self.parser.parse_yaml(file_)
for map_path, _ in file_list:
for map_path, _, _ in file_list:
abs_map_path = os.path.abspath(map_path)
wdd = wm.add_watch(abs_map_path, self.mask, rec=True, auto_add=True)
......
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