def construct_scratch_path(self, dirname, basename):
        """Construct and return a path in the scratch area.

        This will be  <self.scratchdir>/<dirname>/<basename>
        """
        return os.path.join(self.scratchdir, dirname, basename)