aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/include/uhdlib/utils/paths.hpp
blob: 7caac8a7d44d907f46c20a80c9b27f7f19a2c9b2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
//
// Copyright 2018 Ettus Research, a National Instruments Company
//
// SPDX-License-Identifier: GPL-3.0+
//

#ifndef INCLUDED_UHDLIB_UTILS_PATHS_HPP
#define INCLUDED_UHDLIB_UTILS_PATHS_HPP

#include <string>

namespace uhd {

/*! Expand environment variables in paths, like Python's
 *  os.path.expandvars().
 *
 * If expansion fails, will simply return the original path.
 */
std::string path_expandvars(const std::string& path);

std::string get_appdata_path(void);

} /* namespace uhd */

#endif /* INCLUDED_UHDLIB_UTILS_PATHS_HPP */