mirror of
https://github.com/saymrwulf/uhd.git
synced 2026-05-16 21:10:10 +00:00
24 lines
528 B
C++
24 lines
528 B
C++
//
|
|
// 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);
|
|
|
|
} /* namespace uhd */
|
|
|
|
#endif /* INCLUDED_UHDLIB_UTILS_PATHS_HPP */
|
|
|