Skip to content

Commit

Permalink
Fix migrate relative paths computation (open-rmf#214)
Browse files Browse the repository at this point in the history
Signed-off-by: Luca Della Vedova <lucadv@intrinsic.ai>
Signed-off-by: Reuben Thomas <reubenthomas123@gmail.com>
  • Loading branch information
luca-della-vedova authored and reuben-thomas committed May 30, 2024
1 parent 1f331d7 commit d4f4859
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rmf_site_format/src/asset_source.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ impl AssetSource {
if Path::new(asset_path).is_relative() {
println!("Changing path for [{asset_path:?}]");
let new_path = diff_paths(
&old_reference_path.with_file_name(asset_path.clone()),
new_reference_path,
old_reference_path.with_file_name(asset_path.clone()),
new_reference_path.parent().ok_or(())?,
)
.ok_or(())?;
*asset_path = new_path.to_str().ok_or(())?.to_owned();
Expand Down

0 comments on commit d4f4859

Please sign in to comment.