![]() |
|
|||
File indexing completed on 2025-02-22 09:35:10
0001 // This file is part of the ACTS project. 0002 // 0003 // Copyright (C) 2016 CERN for the benefit of the ACTS project 0004 // 0005 // This Source Code Form is subject to the terms of the Mozilla Public 0006 // License, v. 2.0. If a copy of the MPL was not distributed with this 0007 // file, You can obtain one at https://mozilla.org/MPL/2.0/. 0008 0009 #include "Acts/Tests/CommonHelpers/DataDirectory.hpp" 0010 0011 #include <filesystem> 0012 0013 std::string Acts::Test::getDataPath(const std::string& relativePath) { 0014 using std::filesystem::path; 0015 0016 path dataDir(ACTS_TEST_DATA_DIR); 0017 path absPath = dataDir / path(relativePath); 0018 // ensure absolute, consistent path 0019 // weakly_canonical allows non-existing trailing components 0020 return weakly_canonical(absPath).string(); 0021 }
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
![]() ![]() |