session client UPDATE set default and client search dir
diff --git a/src/session_client.c b/src/session_client.c
index 383a599..fd4c5e3 100644
--- a/src/session_client.c
+++ b/src/session_client.c
@@ -229,7 +229,8 @@
/* user path must be first, the first path is used to store modules retreived via get-schema */
if (client_opts.schema_searchpath) {
ly_ctx_set_searchdir(ctx, client_opts.schema_searchpath);
- } else if (!access(NC_YANG_DIR, F_OK)) {
+ }
+ if (!access(NC_YANG_DIR, F_OK)) {
ly_ctx_set_searchdir(ctx, NC_YANG_DIR);
}