mirror of
https://github.com/slsdetectorgroup/aare.git
synced 2026-01-30 18:54:56 +01:00
12 lines
273 B
C++
12 lines
273 B
C++
#pragma once
|
|
#include <filesystem>
|
|
#include <cstdlib>
|
|
|
|
|
|
inline auto test_data_path(){
|
|
if(const char* env_p = std::getenv("AARE_TEST_DATA")){
|
|
return std::filesystem::path(env_p);
|
|
}else{
|
|
throw std::runtime_error("AARE_TEST_DATA_PATH not set");
|
|
}
|
|
} |