From ecce333a05c67240a2fcbd8d21bd3ddf7c8e3767 Mon Sep 17 00:00:00 2001 From: muskit <15199219+muskit@users.noreply.github.com> Date: Thu, 25 Jan 2024 16:59:41 -0800 Subject: [PATCH] fix subdir handling for working_path --- src/util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util.py b/src/util.py index 7a0fdf4..f06bc9c 100644 --- a/src/util.py +++ b/src/util.py @@ -27,7 +27,7 @@ def project_root(dir_path: tuple[str] = tuple(), file: str = None): def working_path(dir_path: tuple[str] = tuple(), file: str = None): """Returns file path relative to the working ephemeral directory.""" - dir_path = project_root("run", *dir_path) + dir_path = project_root(("run", *dir_path)) Path(dir_path).mkdir(parents=True, exist_ok=True) if file is not None: