(session: "Session", path: Path)
| 558 | |
| 559 | |
| 560 | def _check_initialpaths_for_relpath(session: "Session", path: Path) -> Optional[str]: |
| 561 | for initial_path in session._initialpaths: |
| 562 | if commonpath(path, initial_path) == initial_path: |
| 563 | rel = str(path.relative_to(initial_path)) |
| 564 | return "" if rel == "." else rel |
| 565 | return None |
| 566 | |
| 567 | |
| 568 | class FSCollector(Collector): |