summaryrefslogtreecommitdiff
path: root/gnuradio-core/src/lib/general
diff options
context:
space:
mode:
authorTom Rondeau2011-01-23 12:38:13 -0500
committerTom Rondeau2011-01-23 12:38:13 -0500
commit0bc402f938a4aa2504b606811a3c80d2c5ea75af (patch)
tree02ef0c374674564618a19e0b0ac58a57389c88b6 /gnuradio-core/src/lib/general
parentf0001a8f872a6ac34c7607278ca195620b598b4f (diff)
parente97658eca9df698682a70fc96e8644b4e229e4b9 (diff)
downloadgnuradio-0bc402f938a4aa2504b606811a3c80d2c5ea75af.tar.gz
gnuradio-0bc402f938a4aa2504b606811a3c80d2c5ea75af.tar.bz2
gnuradio-0bc402f938a4aa2504b606811a3c80d2c5ea75af.zip
Merge branch 'mergeme/misc/mkdir_simplification' into next
Diffstat (limited to 'gnuradio-core/src/lib/general')
-rw-r--r--gnuradio-core/src/lib/general/gri_fft.cc11
1 files changed, 2 insertions, 9 deletions
diff --git a/gnuradio-core/src/lib/general/gri_fft.cc b/gnuradio-core/src/lib/general/gri_fft.cc
index eebe3b9c5..f20b15ca0 100644
--- a/gnuradio-core/src/lib/general/gri_fft.cc
+++ b/gnuradio-core/src/lib/general/gri_fft.cc
@@ -21,6 +21,7 @@
*/
#include <gri_fft.h>
+#include <gr_sys_paths.h>
#include <fftw3.h>
#include <gr_complex.h>
#include <stdlib.h>
@@ -33,14 +34,6 @@
#include <boost/filesystem/path.hpp>
namespace fs = boost::filesystem;
-static std::string get_home_dir(void){
- #if defined(BOOST_WINDOWS)
- return getenv ("APPDATA");
- #else
- return getenv ("HOME");
- #endif
-}
-
boost::mutex &
gri_fft_planner::mutex()
{
@@ -53,7 +46,7 @@ static const char *
wisdom_filename ()
{
static fs::path path;
- path = fs::path(get_home_dir()) / ".gr_fftw_wisdom";
+ path = fs::path(gr_appdata_path()) / ".gr_fftw_wisdom";
return path.string().c_str();
}