Fix directory_containing_executable() in some cases (#2163).
[dcpomatic.git] / 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();
 }