Yield a sequence of FilePath-like objects which represent path segments.
(self)
| 416 | return self.name + "." + mn |
| 417 | |
| 418 | def _packagePaths(self): |
| 419 | """ |
| 420 | Yield a sequence of FilePath-like objects which represent path segments. |
| 421 | """ |
| 422 | if not self.isPackage(): |
| 423 | return |
| 424 | if self.isLoaded(): |
| 425 | load = self.load() |
| 426 | if hasattr(load, "__path__"): |
| 427 | for fn in load.__path__: |
| 428 | if fn == self.parentPath.path: |
| 429 | # this should _really_ exist. |
| 430 | assert self.parentPath.exists() |
| 431 | yield self.parentPath |
| 432 | else: |
| 433 | smp = self.pathEntry.pythonPath._smartPath(fn) |
| 434 | if smp.exists(): |
| 435 | yield smp |
| 436 | else: |
| 437 | yield self.parentPath |
| 438 | |
| 439 | |
| 440 | class PathEntry(_ModuleIteratorHelper): |
nothing calls this directly
no test coverage detected