Even when specifying a custom openspace.cfg file, define BASE as the location where the original file lives (closes #3806)

This commit is contained in:
Alexander Bock
2025-09-29 10:17:23 +02:00
parent 39c558e629
commit 187d1fbb2c

View File

@@ -1336,7 +1336,7 @@ int main(int argc, char* argv[]) {
LINFO(std::format("Configuration Path '{}'", configurationFilePath));
// Register the base path as the directory where the configuration file lives
std::filesystem::path base = configurationFilePath.parent_path();
std::filesystem::path base = findConfiguration().parent_path();
FileSys.registerPathToken("${BASE}", std::move(base));
// The previous incarnation of this was initializing GLFW to get the primary