summaryrefslogtreecommitdiff
path: root/src/openscad.cc
diff options
context:
space:
mode:
authorclifford <clifford@b57f626f-c46c-0410-a088-ec61d464b74c>2010-02-19 09:51:35 (GMT)
committerclifford <clifford@b57f626f-c46c-0410-a088-ec61d464b74c>2010-02-19 09:51:35 (GMT)
commit05ce9d89b563083b062df82c50eee533555ceaf4 (patch)
tree844eb9844b9f0a078daf7dce3b55d6e764aa9001 /src/openscad.cc
parent48ca7d1856a0c030ce1bf536f88cd51304ff8b1e (diff)
Clifford Wolf:
Improved handling of examplesdir on linux Updated scripts/release-linux.sh git-svn-id: http://svn.clifford.at/openscad/trunk@441 b57f626f-c46c-0410-a088-ec61d464b74c
Diffstat (limited to 'src/openscad.cc')
-rw-r--r--src/openscad.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/openscad.cc b/src/openscad.cc
index f2e1afc..0afc39e 100644
--- a/src/openscad.cc
+++ b/src/openscad.cc
@@ -166,6 +166,14 @@ int main(int argc, char **argv)
exdir.cd("../Resources"); // Examples can be bundled
if (!exdir.exists("examples")) exdir.cd("../../..");
#endif
+#ifdef linux
+ if (exdir.cd("../../examples")) {
+ examplesdir = exdir.path();
+ } else
+ if (exdir.cd("../../share/openscad/examples")) {
+ examplesdir = exdir.path();
+ } else
+#endif
if (exdir.cd("examples")) {
examplesdir = exdir.path();
}
contact: Jan Huwald // Impressum