From d469a03200487d4fc1fdc8f16fc36c3d129d39f6 Mon Sep 17 00:00:00 2001 From: mcquin Date: Mon, 22 Jan 2018 15:01:04 -0500 Subject: [PATCH] Use directory path to form subdirectory paths. Don't force relpaths. --- cytominer_database/utils.py | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/cytominer_database/utils.py b/cytominer_database/utils.py index 26527fa..96aa6d4 100644 --- a/cytominer_database/utils.py +++ b/cytominer_database/utils.py @@ -23,16 +23,7 @@ def find_directories(directory): :return: list of subdirectories of ``directory`` """ - directories = set() - - filenames = glob.glob(os.path.join(directory, '*/')) - - for filename in filenames: - pathname = os.path.relpath(filename) - - directories.add(pathname) - - return directories + return glob.glob(os.path.join(directory, '*/')) def validate_csv(csvfile):