summaryrefslogtreecommitdiff
path: root/src/parsersettings.cc
diff options
context:
space:
mode:
authorMarius Kintel <marius@kintel.net>2013-05-21 22:58:39 (GMT)
committerMarius Kintel <marius@kintel.net>2013-05-21 22:58:39 (GMT)
commit164902fa76efac9f88bbd9aa6cbd1eb8c3fa00fb (patch)
treef2bb23c6617491c3939dea863affd126c66f1795 /src/parsersettings.cc
parent18c4eeebdc1f757fd1140c7620bc3573d47c2592 (diff)
code comments
Diffstat (limited to 'src/parsersettings.cc')
-rw-r--r--src/parsersettings.cc4
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;
contact: Jan Huwald // Impressum