Skip to content
Snippets Groups Projects
Verified Commit cddf0447 authored by Josch Morgenstern's avatar Josch Morgenstern
Browse files

[#83] add Utils.cpp

parent e2ac5c7d
No related branches found
No related tags found
1 merge request!72Draft: Resolve "Pfade zu Ressourcen abhängig von working dir"
#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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment