(paths=None)
| 941 | |
| 942 | @staticmethod |
| 943 | def _paths(paths=None): |
| 944 | # type: (Optional[Iterable[str]]) -> Iterable[str] |
| 945 | # NB: If `paths=[]`, we will not read $PATH. |
| 946 | return OrderedSet(paths if paths is not None else os.getenv("PATH", "").split(os.pathsep)) |
| 947 | |
| 948 | @classmethod |
| 949 | def iter(cls, paths=None): |
no test coverage detected