From d25fabc2290b2cba1f4f0636ee888fd518001e40 Mon Sep 17 00:00:00 2001 From: iback Date: Mon, 5 Aug 2024 11:45:49 +0000 Subject: [PATCH] removed auxiliary from filepath.py --- panoptica/utils/filepath.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/panoptica/utils/filepath.py b/panoptica/utils/filepath.py index aac9edd..f668b75 100644 --- a/panoptica/utils/filepath.py +++ b/panoptica/utils/filepath.py @@ -2,7 +2,6 @@ import warnings from itertools import chain from pathlib import Path -from auxiliary.turbopath import turbopath def search_path(basepath: str | Path, query: str, verbose: bool = False, suppress: bool = False) -> list[Path]: @@ -29,7 +28,7 @@ def search_path(basepath: str | Path, query: str, verbose: bool = False, suppres # Find config path def config_by_name(name: str) -> Path: - directory = turbopath(__file__).parent.parent + directory = Path(__file__.replace("////", "/").replace("\\\\", "/").replace("//", "/").replace("\\", "/")).parent.parent if not name.endswith(".yaml"): name += ".yaml" p = search_path(directory, query=f"**/{name}", suppress=True)