diff options
author | Juan Linietsky <reduzio@gmail.com> | 2015-12-08 17:04:24 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2015-12-08 17:04:24 -0300 |
commit | eff81965af5a7c8180889d55eb55992680e896a4 (patch) | |
tree | 0b2992a510ee9bb68da08be8773378509807ceef /drivers/unix/os_unix.cpp | |
parent | a6ac1fcd94c6433776d6f8c3fba4c48f36a4d8dd (diff) | |
parent | e1d02e4831fdec372771956aa2ac70954ab3fe7b (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/os_unix.cpp')
-rw-r--r-- | drivers/unix/os_unix.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/unix/os_unix.cpp b/drivers/unix/os_unix.cpp index fd8c26f6d9..94a7b03f45 100644 --- a/drivers/unix/os_unix.cpp +++ b/drivers/unix/os_unix.cpp @@ -477,6 +477,14 @@ String OS_Unix::get_data_dir() const { } +String OS_Unix::get_installed_templates_path() const { + String p=get_global_settings_path(); + if (p!="") + return p+"/templates/"; + else + return ""; +} + String OS_Unix::get_executable_path() const { #ifdef __linux__ |