diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2013-03-20 07:43:19 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2013-03-20 07:43:19 -0400 |
commit | a2d657721094e31f1f17ae0bd406bbe36bbc9e98 (patch) | |
tree | 735c5d7312a737d6c11672ef88d0029b89c145c4 /libs/pbd/pathscanner.cc | |
parent | b2a667266bb285f73e4701be55c10633846ace56 (diff) |
move path_expand() and search_path_expand() into libpbd, and use them to expand search paths given to pathscanner objects (always)
Diffstat (limited to 'libs/pbd/pathscanner.cc')
-rw-r--r-- | libs/pbd/pathscanner.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libs/pbd/pathscanner.cc b/libs/pbd/pathscanner.cc index 8f57726c7f..fac2dcfd96 100644 --- a/libs/pbd/pathscanner.cc +++ b/libs/pbd/pathscanner.cc @@ -29,6 +29,7 @@ #include <glibmm/miscutils.h> #include "pbd/error.h" +#include "pbd/pathexpand.h" #include "pbd/pathscanner.h" #include "pbd/stl_delete.h" @@ -90,7 +91,7 @@ PathScanner::run_scan_internal (vector<string *> *result, { DIR *dir; struct dirent *finfo; - char *pathcopy = strdup (dirpath.c_str()); + char *pathcopy = strdup (search_path_expand (dirpath).c_str()); char *thisdir; string fullpath; string search_str; |