Commit 26e955bebf6c9abaef8f183b522ed2c56d8f0ee6

Authored by Alexis Koralewski
1 parent 0a92b6fe
Exists in dev

Remove going on level too high for DATA folder

Showing 1 changed file with 2 additions and 2 deletions   Show diff stats
src/core/pyros_django/obs_config/obsconfig_class.py
@@ -309,7 +309,7 @@ class OBSConfig: @@ -309,7 +309,7 @@ class OBSConfig:
309 elif values.get("pathnaming"): 309 elif values.get("pathnaming"):
310 self.fn.pathnaming(values["pathnaming"]) 310 self.fn.pathnaming(values["pathnaming"])
311 root_project_path = os.environ.get("PROJECT_ROOT_PATH", os.path.join(os.getcwd(), "../../../../")) 311 root_project_path = os.environ.get("PROJECT_ROOT_PATH", os.path.join(os.getcwd(), "../../../../"))
312 - data_path = os.path.join(root_project_path, "..", "..", "DATA") 312 + data_path = os.path.join(root_project_path, "..", "DATA")
313 self.fn.rootdir = os.path.join(data_path, values["root_dir"]) 313 self.fn.rootdir = os.path.join(data_path, values["root_dir"])
314 os.makedirs(self.fn.rootdir, exist_ok=True) 314 os.makedirs(self.fn.rootdir, exist_ok=True)
315 self.fn.extension = values["extension"] 315 self.fn.extension = values["extension"]
@@ -622,7 +622,7 @@ class OBSConfig: @@ -622,7 +622,7 @@ class OBSConfig:
622 elif values.get("pathnaming"): 622 elif values.get("pathnaming"):
623 fn.pathnaming(values["pathnaming"]) 623 fn.pathnaming(values["pathnaming"])
624 root_project_path = os.environ.get("PROJECT_ROOT_PATH",os.path.join(os.getcwd(), "../../../../")) 624 root_project_path = os.environ.get("PROJECT_ROOT_PATH",os.path.join(os.getcwd(), "../../../../"))
625 - data_path = os.path.join(root_project_path, "..", "..", "DATA") 625 + data_path = os.path.join(root_project_path, "..", "DATA")
626 fn.rootdir = os.path.join(data_path, values["root_dir"]) 626 fn.rootdir = os.path.join(data_path, values["root_dir"])
627 fn.extension = values["extension"] 627 fn.extension = values["extension"]
628 self.fn = fn 628 self.fn = fn