diff options
Diffstat (limited to 'src/wrapper.c')
-rw-r--r-- | src/wrapper.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/wrapper.c b/src/wrapper.c index 9cc90cd..c7ed535 100644 --- a/src/wrapper.c +++ b/src/wrapper.c @@ -18,6 +18,8 @@ #include <stdlib.h> #include <stdio.h> +#include "supple_paths.h" + typedef struct { int retcode; } prot_args; @@ -62,7 +64,12 @@ main(int argc, char **argv) int success; /* Perform pre-lua-interpreter initialisation */ -#ifndef TESTING_SUPPLE +#if defined BAKE_SUPPLE_PATHS + setenv("LUA_PATH", SUPPLE_LUA_PATH, 1); + setenv("LUA_CPATH", SUPPLE_LUA_CPATH, 1); + unsetenv("SUPPLE_MKDTEMP"); + unsetenv("LUA_INIT"); +#elif !defined TESTING_SUPPLE unsetenv("LUA_PATH"); unsetenv("LUA_CPATH"); unsetenv("SUPPLE_MKDTEMP"); |