diff options
-rw-r--r-- | project2/common/scripts.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/project2/common/scripts.cpp b/project2/common/scripts.cpp index 983a156..5f4ba64 100644 --- a/project2/common/scripts.cpp +++ b/project2/common/scripts.cpp @@ -69,6 +69,9 @@ ScriptReaderPtr ScriptReader::resolveScript(const std::string & group, const std::string & name, bool ii) { std::filesystem::path e(name); + if (e.is_absolute()) { + e = e.lexically_relative("/"); + } while (!e.empty()) { ScriptKey sk(group, e.string()); ScriptReaderPtr rs = AppInstance::current().cachedScript(sk); |