From: Carl Hetherington Date: Sun, 13 Oct 2013 02:02:30 +0000 (+0100) Subject: More OS X debugging. X-Git-Tag: v2.0.48~1283^2~3 X-Git-Url: https://git.carlh.net/gitweb/?a=commitdiff_plain;h=5f5ddd2a6c3b25619469b63652718c88d5a3f371;p=dcpomatic.git More OS X debugging. --- diff --git a/src/lib/cross.cc b/src/lib/cross.cc index 30fe887f8..ac94e8015 100644 --- a/src/lib/cross.cc +++ b/src/lib/cross.cc @@ -127,10 +127,11 @@ app_contents () } boost::filesystem::path path (buffer); + path = boost::filesystem::canonical (path); std::cout << "start " << path << "\n"; - path.remove_filename (); + path = path.parent_path (); std::cout << "then " << path << "\n"; - path.remove_filename (); + path = path.parent_path (); std::cout << "and then " << path << "\n"; return path; }