Skip to content
Snippets Groups Projects

Draft: Resolve "Pfade zu Ressourcen abhängig von working dir"

1 unresolved thread
1 file
+ 12
0
Compare changes
  • Side-by-side
  • Inline
+ 12
0
#include <vkcv/Utils.hpp>
#include <boost/dll.hpp>
namespace utils {
std::string absolutePath(std::string path) {
boost::filesystem::path root = boost::dll::program_location().parent_path();
boost::filesystem::path relative(path);
boost::filesystem::path fullpath = root / relative;
return fullpath.string();
}
}
\ No newline at end of file
Loading