Clean up handling of paths relative to the executable.
[dcpomatic.git] / src / lib / util.cc
index bff205cfb3496dcef7bd58575cb36a9b4f8d9293..e0efbc6f5254da21a9dc8d5801c1e8d2acf1746a 100644 (file)
@@ -362,7 +362,7 @@ dcpomatic_setup ()
        /* Add our library directory to the libltdl search path so that
           xmlsec can find xmlsec1-openssl.
        */
-       boost::filesystem::path lib = app_contents ();
+       boost::filesystem::path lib = directory_containing_executable().parent_path();
        lib /= "Frameworks";
        setenv ("LTDL_LIBRARY_PATH", lib.c_str (), 1);
 #endif