summaryrefslogtreecommitdiffstats
path: root/host/lib/utils/paths.cpp
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2012-10-29 19:42:29 -0700
committerJosh Blum <josh@joshknows.com>2012-11-08 18:36:59 -0800
commit6b2a2128426f0f17b6375a39efb37d7202f78574 (patch)
tree3f701643d0e5786395d8b176bce1b59c916a361c /host/lib/utils/paths.cpp
parentc7968a6b0e544236657946943610b9a147b7d569 (diff)
downloaduhd-6b2a2128426f0f17b6375a39efb37d7202f78574.tar.gz
uhd-6b2a2128426f0f17b6375a39efb37d7202f78574.tar.bz2
uhd-6b2a2128426f0f17b6375a39efb37d7202f78574.zip
uhd: work on moving binaries to lib/uhd
Diffstat (limited to 'host/lib/utils/paths.cpp')
-rw-r--r--host/lib/utils/paths.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/host/lib/utils/paths.cpp b/host/lib/utils/paths.cpp
index 26fa6d1c7..53055314b 100644
--- a/host/lib/utils/paths.cpp
+++ b/host/lib/utils/paths.cpp
@@ -71,20 +71,20 @@ static std::vector<fs::path> get_env_paths(const std::string &var_name){
/***********************************************************************
* Get a list of special purpose paths
**********************************************************************/
-std::string uhd::get_pkg_data_path(void)
+std::string uhd::get_pkg_path(void)
{
- return get_env_var("UHD_PKG_DATA_PATH", UHD_PKG_DATA_PATH);
+ return get_env_var("UHD_PKG_PATH", UHD_PKG_PATH);
}
std::vector<fs::path> get_image_paths(void){
std::vector<fs::path> paths = get_env_paths("UHD_IMAGE_PATH");
- paths.push_back(fs::path(uhd::get_pkg_data_path()) / "images");
+ paths.push_back(fs::path(uhd::get_pkg_path()) / "share" / "uhd" / "images");
return paths;
}
std::vector<fs::path> get_module_paths(void){
std::vector<fs::path> paths = get_env_paths("UHD_MODULE_PATH");
- paths.push_back(fs::path(uhd::get_pkg_data_path()) / "modules");
+ paths.push_back(fs::path(uhd::get_pkg_path()) / UHD_LIB_DIR / "uhd" / "modules");
return paths;
}