Skip to content

Commit

Permalink
Use directory path to form subdirectory paths.
Browse files Browse the repository at this point in the history
Don't force relpaths.
  • Loading branch information
mcquin committed Jan 22, 2018
1 parent 9a6b198 commit d469a03
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions cytominer_database/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit d469a03

Please sign in to comment.