+ base_path = wrbuf_alloc();
+ last_p = strrchr(fname,
+#ifdef WIN32
+ '\\'
+#else
+ '/'
+#endif
+ );
+ if (last_p)
+ wrbuf_write(base_path, fname, last_p - fname);
+ else
+ wrbuf_puts(base_path, ".");
+ xml_config_read(wrbuf_cstr(base_path));
+ wrbuf_destroy(base_path);