Skip to content

Commit

Permalink
Return absolute path when finding a resource (#1741)
Browse files Browse the repository at this point in the history
* Adds sky cubemap URI to the sky.proto's header

Signed-off-by: Nate Koenig <nate@openrobotics.org>

* Return absolute path when finding a resource

Signed-off-by: Nate Koenig <nate@openrobotics.org>

Signed-off-by: Nate Koenig <nate@openrobotics.org>
Co-authored-by: Nate Koenig <nate@openrobotics.org>
  • Loading branch information
nkoenig and Nate Koenig authored Sep 28, 2022
1 parent 319fc7d commit aff9249
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ServerPrivate.cc
Original file line number Diff line number Diff line change
Expand Up @@ -490,9 +490,9 @@ bool ServerPrivate::ResourcePathsResolveService(
std::string req = _req.data();

// Handle the case where the request is already a valid path
if (common::exists(req))
if (common::exists(common::absPath(req)))
{
_res.set_data(req);
_res.set_data(common::absPath(req));
return true;
}

Expand Down

0 comments on commit aff9249

Please sign in to comment.