From 4691bc39aca46ddd0b00f6e9c47b3c0a8f0e2ba2 Mon Sep 17 00:00:00 2001 From: David Rose Date: Tue, 17 Sep 2002 00:48:20 +0000 Subject: [PATCH] search local directory if no path specified --- panda/src/express/get_config_path.cxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/panda/src/express/get_config_path.cxx b/panda/src/express/get_config_path.cxx index dc826f0720..79a631e2ca 100644 --- a/panda/src/express/get_config_path.cxx +++ b/panda/src/express/get_config_path.cxx @@ -49,7 +49,11 @@ get_config_path(const string &config_var_name, DSearchPath *&static_ptr) { Config::ConfigTable::Symbol all_defs; config_express.GetAll(config_var_name, all_defs); - if (!all_defs.empty()) { + if (all_defs.empty()) { + // If the path is undefined, it is implicitly ".". + (*static_ptr).append_path("."); + + } else { Config::ConfigTable::Symbol::reverse_iterator si = all_defs.rbegin(); string filename = ExecutionEnvironment::expand_string((*si).Val());