diff options
Diffstat (limited to 'src/lib/config.cc')
| -rw-r--r-- | src/lib/config.cc | 11 |
1 files changed, 11 insertions, 0 deletions
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() |
