# include <config.h>
#endif
+#include <cstring>
+
#include <simgear/structure/exception.hxx>
#include <simgear/misc/sg_path.hxx>
#include <simgear/debug/logstream.hxx>
}
if ( path.length() ) {
- SGPath config( globals->get_fg_root() );
- config.append( path );
-
+ SGPath config = globals->resolve_aircraft_path(path);
+
// load an obsolete xml configuration
SG_LOG( SG_ALL, SG_WARN,
"Reading deprecated xml electrical system model from\n "