code: def _get_datapath(self):
          
          if self._datapath is None:
              raise OSError(errno.ENOENT, "You didn't provide any datapath for %r" % self.filename)
  
          return self._datapath
docs: Get a valid datapath, else raise an exception.