mirror of
https://github.com/slsdetectorgroup/aare.git
synced 2025-06-11 23:07:14 +02:00
added cluster finder
This commit is contained in:
@ -1,7 +1,12 @@
|
||||
#pragma once
|
||||
#include <filesystem>
|
||||
#include <cstdlib>
|
||||
|
||||
static constexpr auto test_data_path_str = "@TEST_FILE_PATH@";
|
||||
inline auto test_data_path() {
|
||||
return std::filesystem::path(test_data_path_str);
|
||||
|
||||
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");
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user