summaryrefslogtreecommitdiff
path: root/src/lib/util.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2020-06-03 12:21:28 +0200
committerCarl Hetherington <cth@carlh.net>2020-06-04 01:20:11 +0200
commit7552a04c443c9c641ac580585f6d88900bf84d04 (patch)
tree7a3d4e6d454279b8d43e37d2cd4ae3d956316275 /src/lib/util.cc
parent816872f9ddf1251f29fe51594401ddd4f4d89c59 (diff)
Clean up handling of paths relative to the executable.
Diffstat (limited to 'src/lib/util.cc')
-rw-r--r--src/lib/util.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/util.cc b/src/lib/util.cc
index bff205cfb..e0efbc6f5 100644
--- a/src/lib/util.cc
+++ b/src/lib/util.cc
@@ -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