code: def relative_path(self, absolute_path, output_filename):
          
          absolute_path = posixpath.join(settings.PIPELINE_ROOT, absolute_path)
          output_path = posixpath.join(settings.PIPELINE_ROOT, posixpath.dirname(output_filename))
          return relpath(absolute_path, output_path)
docs: Rewrite paths relative to the output stylesheet path