summaryrefslogtreecommitdiff
path: root/drivers/unix/SCsub
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2015-12-08 17:04:24 -0300
committerJuan Linietsky <reduzio@gmail.com>2015-12-08 17:04:24 -0300
commiteff81965af5a7c8180889d55eb55992680e896a4 (patch)
tree0b2992a510ee9bb68da08be8773378509807ceef /drivers/unix/SCsub
parenta6ac1fcd94c6433776d6f8c3fba4c48f36a4d8dd (diff)
parente1d02e4831fdec372771956aa2ac70954ab3fe7b (diff)
Merge pull request #2956 from est31/add_system_wide_export_path
Add way to look for templates at system wide level too
Diffstat (limited to 'drivers/unix/SCsub')
-rw-r--r--drivers/unix/SCsub8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/unix/SCsub b/drivers/unix/SCsub
index 9fbb467baa..e8b3cadfc7 100644
--- a/drivers/unix/SCsub
+++ b/drivers/unix/SCsub
@@ -1,5 +1,13 @@
Import('env')
+ed_gl_set='#include "os_unix.h"\n'
+ed_gl_set+='String OS_Unix::get_global_settings_path() const {\n'
+ed_gl_set+='\treturn "' + env["unix_global_settings_path"]+'";\n'
+ed_gl_set+='}\n'
+f = open("os_unix_global_settings_path.cpp","wb")
+f.write(ed_gl_set)
+f.close()
+
env.add_source_files(env.drivers_sources,"*.cpp")
Export('env')