From 915ce31abe0316f4426316c32e4d2670ecc18d42 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Barth=C3=A9l=C3=A9my=20von=20Haller?= Date: Mon, 23 Sep 2024 16:03:11 +0200 Subject: [PATCH] Fix the path to FT0 etc files --- Modules/FIT/FT0/CMakeLists.txt | 2 +- Modules/FIT/FT0/include/FT0/ChannelGeometry.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Modules/FIT/FT0/CMakeLists.txt b/Modules/FIT/FT0/CMakeLists.txt index 65f4768c58..35ae4c0e6d 100644 --- a/Modules/FIT/FT0/CMakeLists.txt +++ b/Modules/FIT/FT0/CMakeLists.txt @@ -52,7 +52,7 @@ install(FILES etc/ft0-digits.json etc/ft0-post-processing.json etc/ft0-recpoints.json etc/FT0_LUT.csv - DESTINATION Modules/FIT/FT0/etc) + DESTINATION ${CMAKE_INSTALL_SYSCONFDIR}/Modules/FIT/FT0/etc) # ---- Executables ---- # keep commented as an example diff --git a/Modules/FIT/FT0/include/FT0/ChannelGeometry.h b/Modules/FIT/FT0/include/FT0/ChannelGeometry.h index 8aae881f98..2d8b80bb44 100644 --- a/Modules/FIT/FT0/include/FT0/ChannelGeometry.h +++ b/Modules/FIT/FT0/include/FT0/ChannelGeometry.h @@ -61,7 +61,7 @@ class ChannelGeometry static std::string getFilepath(const std::string& filename = "FT0_LUT.csv") { const auto pathEnv = std::getenv("QUALITYCONTROL_ROOT"); - const std::string subfilepath = "/Modules/FIT/FT0/etc/" + filename; + const std::string subfilepath = "/etc/Modules/FIT/FT0/etc/" + filename; if (pathEnv) { return pathEnv + subfilepath; }