Explorar o código

an unspecified path should implicitly contain '.'

David Rose %!s(int64=21) %!d(string=hai) anos
pai
achega
dac28d3c1b
Modificáronse 1 ficheiros con 5 adicións e 0 borrados
  1. 5 0
      dtool/src/prc/configVariableSearchPath.cxx

+ 5 - 0
dtool/src/prc/configVariableSearchPath.cxx

@@ -55,6 +55,11 @@ reload_search_path() {
   }
   _value.append_path(_postfix);
 
+  if (_value.is_empty()) {
+    // An empty search path implicitly has "." on it.
+    _value.append_directory(".");
+  }
+
   _value_seq = _core->get_value_seq();
   _value_stale = false;
 }