fix subdir handling for working_path
This commit is contained in:
+1
-1
@@ -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):
|
def working_path(dir_path: tuple[str] = tuple(), file: str = None):
|
||||||
"""Returns file path relative to the working ephemeral directory."""
|
"""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)
|
Path(dir_path).mkdir(parents=True, exist_ok=True)
|
||||||
|
|
||||||
if file is not None:
|
if file is not None:
|
||||||
|
|||||||
Reference in New Issue
Block a user