diff options
Diffstat (limited to 'host/lib/include/uhdlib/utils')
-rw-r--r-- | host/lib/include/uhdlib/utils/paths.hpp | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/host/lib/include/uhdlib/utils/paths.hpp b/host/lib/include/uhdlib/utils/paths.hpp new file mode 100644 index 000000000..d74973301 --- /dev/null +++ b/host/lib/include/uhdlib/utils/paths.hpp @@ -0,0 +1,24 @@ +// +// 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 */ + |