Return true for directories that are packages.
(self, file)
| 73 | return sublist |
| 74 | |
| 75 | def ispackagedir(self, file): |
| 76 | " Return true for directories that are packages." |
| 77 | if not os.path.isdir(file): |
| 78 | return False |
| 79 | init = os.path.join(file, "__init__.py") |
| 80 | return os.path.exists(init) |
| 81 | |
| 82 | def listmodules(self, allnames): |
| 83 | modules = {} |