From 4021e2a5b467338814664c466a84714da5fcbc0b Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Fri, 9 May 2025 00:48:07 +0200 Subject: Interpret relative cinemas SQLite3 paths as being relative to the config.xml (#3038). --- src/lib/config.cc | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/lib/config.cc') diff --git a/src/lib/config.cc b/src/lib/config.cc index 669ea4e21..66a0e1a5a 100644 --- a/src/lib/config.cc +++ b/src/lib/config.cc @@ -1736,6 +1736,17 @@ Config::cinemas_file_from_zip(boost::filesystem::path zip) } +boost::filesystem::path +Config::cinemas_file() const +{ + if (_cinemas_file.is_absolute()) { + return _cinemas_file; + } + + return read_path("config.xml").parent_path() / _cinemas_file; +} + + #ifdef DCPOMATIC_GROK Config::Grok::Grok() -- cgit v1.2.3