| 3281 | } |
| 3282 | |
| 3283 | std::string SystemTools::GetCurrentWorkingDirectory() |
| 3284 | { |
| 3285 | char buf[2048]; |
| 3286 | char const* cwd = Getcwd(buf, 2048); |
| 3287 | std::string path; |
| 3288 | if (cwd) { |
| 3289 | path = cwd; |
| 3290 | SystemTools::ConvertToUnixSlashes(path); |
| 3291 | } |
| 3292 | return path; |
| 3293 | } |
| 3294 | |
| 3295 | std::string SystemTools::GetProgramPath(std::string const& in_name) |
| 3296 | { |