Convert directory path to uri
(self, dirpath)
| 198 | return path |
| 199 | |
| 200 | def _path2uri(self, dirpath): |
| 201 | ''' Convert directory path to uri ''' |
| 202 | relpath = dirpath.replace(self.root_path, self.package_name) |
| 203 | if relpath.startswith(os.path.sep): |
| 204 | relpath = relpath[1:] |
| 205 | return relpath.replace(os.path.sep, '.') |
| 206 | |
| 207 | def _parse_module(self, uri): |
| 208 | ''' Parse module defined in *uri* ''' |