mirror of
https://github.com/slsdetectorgroup/aare.git
synced 2026-10-20 22:36:20 +02:00
13 lines
324 B
Plaintext
13 lines
324 B
Plaintext
// SPDX-License-Identifier: MPL-2.0
|
|
#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("Path to test data: $AARE_TEST_DATA not set");
|
|
}
|
|
} |