# File lib/sprockets/asset_attributes.rb, line 34
    def logical_path
      if root_path = environment.paths.detect { |path| pathname.to_s[path] }
        path = pathname.to_s.sub("#{root_path}/", '')
        path = pathname.relative_path_from(Pathname.new(root_path)).to_s
        path = engine_extensions.inject(path) { |p, ext| p.sub(ext, '') }
        path = "#{path}#{engine_format_extension}" unless format_extension
        path
      else
        raise FileOutsidePaths, "#{pathname} isn't in paths: #{environment.paths.join(', ')}"
      end
    end