(s)
| 135 | return os.path.join(roots[0], s) |
| 136 | |
| 137 | def files_from(s): |
| 138 | if s.strip().lower() == "default": |
| 139 | return sorted(glob.glob(os.path.join(SAMPLE_DATA_DIR, key, "*" + ext))) |
| 140 | p = s if os.path.isabs(s) else _resolve(s) |
| 141 | if os.path.isdir(p): |
| 142 | return sorted(glob.glob(os.path.join(p, "*" + ext))) |
| 143 | return [p] |
| 144 | |
| 145 | docs = [] |
| 146 | for item in source if isinstance(source, list) else [source]: |
no test coverage detected