mirror of
https://github.com/slsdetectorgroup/aare.git
synced 2025-04-22 14:50:03 +02: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");
|
|
}
|
|
} |