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