From f34e8200dd57dc9eecf130782458cd98fd7278a3 Mon Sep 17 00:00:00 2001 From: Timmy Welch Date: Sat, 20 Jan 2024 10:34:40 -0800 Subject: [PATCH] Fix add_to_path tests --- comicapi/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/comicapi/utils.py b/comicapi/utils.py index 5c5fe96..f50053c 100644 --- a/comicapi/utils.py +++ b/comicapi/utils.py @@ -226,7 +226,7 @@ def get_recursive_filelist(pathlist: list[str]) -> list[str]: def add_to_path(dirname: str) -> None: - if dirname and os.path.isdir(dirname): + if dirname: dirname = os.path.abspath(dirname) paths = [os.path.normpath(x) for x in split(os.environ["PATH"], os.pathsep)]