mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 02:15:43 -04:00
search local directory if no path specified
This commit is contained in:
parent
b961f0192e
commit
4691bc39ac
@ -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());
|
||||
|
Loading…
x
Reference in New Issue
Block a user