diff options
-rw-r--r-- | Makefile.am | 1 | ||||
-rw-r--r-- | python-wrapper.c | 6 |
2 files changed, 6 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am index 69fd8d8..06f7d1c 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,4 +1,5 @@ bin_PROGRAMS = python-wrapper +python_wrapper_CPPFLAGS = -DENVD='"$(sysconfdir)/env.d"' eselectdir = $(datadir)/eselect/modules nodist_eselect_DATA = python.eselect diff --git a/python-wrapper.c b/python-wrapper.c index 6596c30..75a1de4 100644 --- a/python-wrapper.c +++ b/python-wrapper.c @@ -12,7 +12,11 @@ #include <unistd.h> #include <sys/stat.h> -#define ENVD_CONFIG "/etc/env.d/python/config" +#ifndef ENVD +#define ENVD "/etc/env.d" +#endif + +#define ENVD_CONFIG ENVD "/python/config" /* 127 is the standard return code for "command not found" */ #define EXIT_ERROR 127 |