Fix directory_containing_executable() in some cases (#2163).
authorCarl Hetherington <cth@carlh.net>
Sun, 16 Jan 2022 00:18:04 +0000 (01:18 +0100)
committerCarl Hetherington <cth@carlh.net>
Sun, 16 Jan 2022 18:04:03 +0000 (19:04 +0100)
src/lib/cross_osx.cc

index ff40ffb708aa8666a2e279b8362ce34663abd8c1..d9355e161b8de21d646628b10eafa5ea9c967397 100644 (file)
@@ -104,7 +104,7 @@ cpu_info ()
 boost::filesystem::path
 directory_containing_executable ()
 {
-       return boost::dll::program_location().parent_path();
+       return boost::filesystem::canonical(boost::dll::program_location()).parent_path();
 }