From 7e98b27eaf8075f648db99222cd5a36ff59d3374 Mon Sep 17 00:00:00 2001 From: David Rose Date: Tue, 26 Oct 2004 18:25:54 +0000 Subject: [PATCH] oops, expand search path components --- dtool/src/prc/configVariableSearchPath.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dtool/src/prc/configVariableSearchPath.cxx b/dtool/src/prc/configVariableSearchPath.cxx index a12a24e3ed..a860c0bdb5 100644 --- a/dtool/src/prc/configVariableSearchPath.cxx +++ b/dtool/src/prc/configVariableSearchPath.cxx @@ -17,6 +17,7 @@ //////////////////////////////////////////////////////////////////// #include "configVariableSearchPath.h" +#include "executionEnvironment.h" //////////////////////////////////////////////////////////////////// // Function: ConfigVariableSearchPath::Constructor @@ -65,7 +66,9 @@ reload_search_path() { _value.append_path(_prefix); int num_unique_references = _core->get_num_unique_references(); for (int i = 0; i < num_unique_references; i++) { - _value.append_directory(_core->get_unique_reference(i)->get_string_value()); + string dirname = _core->get_unique_reference(i)->get_string_value(); + string expanded = ExecutionEnvironment::expand_string(dirname); + _value.append_directory(Filename::from_os_specific(expanded)); } _value.append_path(_postfix);