diff options
Diffstat (limited to 'src/parsersettings.cc')
-rw-r--r-- | src/parsersettings.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/parsersettings.cc b/src/parsersettings.cc index b2ef1fa..48a6cf8 100644 --- a/src/parsersettings.cc +++ b/src/parsersettings.cc @@ -42,11 +42,15 @@ void parser_init(const std::string &applicationpath) } } + // This is the built-in user-writable library path #ifndef OPENSCAD_TESTING + // This will resolve to ~/Documents on Mac, "My Documents" on Windows and + // ~/.local/share on Linux fs::path docdir(PlatformUtils::documentsPath()); add_librarydir(boosty::stringy(docdir / "OpenSCAD" / "libraries")); #endif + // This is the built-in read-only library path std::string librarydir; fs::path libdir(applicationpath); fs::path tmpdir; |