mirror of
https://github.com/slsdetectorgroup/aare.git
synced 2025-04-19 13:20:03 +02:00

Some checks failed
Build the package using cmake then documentation / build (ubuntu-latest, 3.12) (push) Failing after 43s
Co-authored-by: Patrick <patrick.sieberer@psi.ch> Co-authored-by: JulianHeymes <julian.heymes@psi.ch> Co-authored-by: Dhanya Thattil <dhanya.thattil@psi.ch> Co-authored-by: Xiangyu Xie <45243914+xiangyuxie@users.noreply.github.com> Co-authored-by: xiangyu.xie <xiangyu.xie@psi.ch>
12 lines
288 B
C++
12 lines
288 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("Path to test data: $AARE_TEST_DATA not set");
|
|
}
|
|
} |