From 8f65c8a1c91b9b5cd1cedbf8c8b5126698b8a337 Mon Sep 17 00:00:00 2001 From: Valery Date: Wed, 15 Nov 2023 20:07:16 +0300 Subject: [PATCH] macos template --- common_utils/common_utils.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/common_utils/common_utils.cpp b/common_utils/common_utils.cpp index 8b8438d..80f29a4 100644 --- a/common_utils/common_utils.cpp +++ b/common_utils/common_utils.cpp @@ -44,6 +44,7 @@ void openFileBySystem(const string& file_name) { namespace davis { string getCurrentPath() { +#if defined (_WIN32) || (__linux__) char buffer[1024]; char* answer = getcwd(buffer, sizeof(buffer)); string s_cwd; @@ -51,6 +52,10 @@ string getCurrentPath() { s_cwd = answer; } return s_cwd; +#elif __APPLE + //TODO macos get current path implementation + return ""; +#endif }; bool isPlotlyScriptExists() {