Return complete path for path. Prepends baseurl if necessary.
(self, path)
| 578 | DataSource.__del__(self) |
| 579 | |
| 580 | def _fullpath(self, path): |
| 581 | """Return complete path for path. Prepends baseurl if necessary.""" |
| 582 | splitpath = path.split(self._baseurl, 2) |
| 583 | if len(splitpath) == 1: |
| 584 | result = os.path.join(self._baseurl, path) |
| 585 | else: |
| 586 | result = path # path contains baseurl already |
| 587 | return result |
| 588 | |
| 589 | def _findfile(self, path): |
| 590 | """Extend DataSource method to prepend baseurl to ``path``.""" |