diff --git a/src/vkcv/Utils.cpp b/src/vkcv/Utils.cpp new file mode 100644 index 0000000000000000000000000000000000000000..301cd1f023155a27137be4efb6b99348ba06b7b8 --- /dev/null +++ b/src/vkcv/Utils.cpp @@ -0,0 +1,12 @@ +#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