X-Git-Url: https://review.openocd.org/gitweb?a=blobdiff_plain;f=src%2Fhelper%2Foptions.c;h=b13d466d3cb8992ecdbf12d471203b48a1390713;hb=03e240f3bfb973968961c1ed21cac748f0d771da;hp=bbd071fd8191c96c1e88e09718b6c8fd7763ac85;hpb=5479ed42ba30dcc692c696cf1d215278e03ce0be;p=openocd.git diff --git a/src/helper/options.c b/src/helper/options.c index bbd071fd81..b13d466d3c 100644 --- a/src/helper/options.c +++ b/src/helper/options.c @@ -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");