]> git.sur5r.net Git - openocd/blobdiff - src/helper/options.c
helper/options: Use OPENOCD_SCRIPTS dir if set.
[openocd] / src / helper / options.c
index bbd071fd8191c96c1e88e09718b6c8fd7763ac85..b13d466d3cb8992ecdbf12d471203b48a1390713 100644 (file)
@@ -113,6 +113,12 @@ static void add_default_dirs(void)
                        free(path);
                }
        }
+
+       path = getenv("OPENOCD_SCRIPTS");
+
+       if (path)
+               add_script_search_dir(path);
+
 #ifdef _WIN32
        const char *appdata = getenv("APPDATA");