Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add fix for preventing nested list #85

Merged
merged 3 commits into from
Sep 22, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions ecgtools/builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,9 @@ def get_directories(self):
elif isinstance(self.root_path, list):
dirs = [x for path in self.root_path for x in path.glob(pattern) if x.is_dir()]

if not dirs:
dirs = self.root_path
andersy005 marked this conversation as resolved.
Show resolved Hide resolved

mgrover1 marked this conversation as resolved.
Show resolved Hide resolved
if not dirs:
dirs = [self.root_path]
self.dirs = dirs
Expand Down