Fix add_to_path tests

This commit is contained in:
Timmy Welch 2024-01-20 10:34:40 -08:00
parent 539aac1307
commit f34e8200dd

View File

@ -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)]