More OS X debugging.
authorCarl Hetherington <cth@carlh.net>
Sun, 13 Oct 2013 02:02:30 +0000 (03:02 +0100)
committerCarl Hetherington <cth@carlh.net>
Sun, 13 Oct 2013 02:02:30 +0000 (03:02 +0100)
src/lib/cross.cc

index 30fe887f80787297fa46b6f908d3dd1099097dd9..ac94e8015af3554473424d8f672690f5cef8fef0 100644 (file)
@@ -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;
 }