Changeset 486:774bfa9c0dc8 in finroc_core
- Timestamp:
- 26.10.2021 17:10:03 (20 months ago)
- Branch:
- 17.03
- Children:
- 487:3ae47727c72a, 488:9bcc51cd5ba0
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
file_lookup.cpp
r482 r486 36 36 #include <unistd.h> 37 37 #include <limits.h> 38 #include "rrlib/util/string.h" 38 39 39 40 //---------------------------------------------------------------------- … … 106 107 cwd = std::string(cwd_cstring) + "/"; 107 108 paths.push_back(cwd); 109 } 110 111 const char *finroc_file_lookup_path = getenv("FINROC_FILE_LOOKUP_PATH"); 112 if (finroc_file_lookup_path) 113 { 114 std::vector<std::string> tokens; 115 rrlib::util::Tokenize(finroc_file_lookup_path, tokens, ":"); 116 for (auto & x : tokens) 117 { 118 x.append("/sources/cpp/"); 119 } 120 std::copy(tokens.begin(), tokens.end(), std::back_inserter(paths)); 108 121 } 109 122 return paths;
Note: See TracChangeset
for help on using the changeset viewer.