summaryrefslogtreecommitdiff
path: root/src/plugins/filesystem/SpecialPaths.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/filesystem/SpecialPaths.cpp')
-rw-r--r--src/plugins/filesystem/SpecialPaths.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/plugins/filesystem/SpecialPaths.cpp b/src/plugins/filesystem/SpecialPaths.cpp
index 97bdb9c..47ac0f0 100644
--- a/src/plugins/filesystem/SpecialPaths.cpp
+++ b/src/plugins/filesystem/SpecialPaths.cpp
@@ -59,8 +59,12 @@ std::string SpecialPaths::getDebugDataDir()
std::string SpecialPaths::getDebugTestdataDir()
{
- fs::path debug{OUSIA_DEBUG_DIR};
- return (debug / "testdata").generic_string();
+ std::string debug{OUSIA_DEBUG_DIR};
+ if (debug.empty()) {
+ return "./testdata";
+ } else {
+ return (fs::path{debug} / "testdata").generic_string();
+ }
}
}