Skip to content

Commit

Permalink
macos template
Browse files Browse the repository at this point in the history
  • Loading branch information
ValeryStk committed Nov 15, 2023
1 parent 8a47927 commit 8f65c8a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions common_utils/common_utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,18 @@ 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;
if (answer) {
s_cwd = answer;
}
return s_cwd;
#elif __APPLE
//TODO macos get current path implementation
return "";
#endif
};

bool isPlotlyScriptExists() {
Expand Down

0 comments on commit 8f65c8a

Please sign in to comment.