Skip to content

Commit

Permalink
removed auxiliary from filepath.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Hendrik-code committed Aug 5, 2024
1 parent d2432f5 commit d25fabc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions panoptica/utils/filepath.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]:
Expand All @@ -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)
Expand Down

0 comments on commit d25fabc

Please sign in to comment.