(self, fullname)
| 419 | |
| 420 | # PEP-302 extension 2 of 3: get __file__ without importing. |
| 421 | def get_filename(self, fullname): |
| 422 | modname = fullname |
| 423 | if self.is_package(fullname): |
| 424 | fullname += '.__init__' |
| 425 | relpath = self._find_mod_path(fullname) |
| 426 | if isinstance(relpath, bytes): |
| 427 | relpath = _s(relpath) |
| 428 | return relpath or modname |
| 429 | |
| 430 | # PEP-302 extension 3 of 3: packaging introspection. |
| 431 | # Used by `linecache` (while printing tracebacks) unless module filename |
no test coverage detected