Set PATH for slidescript, FIND THE PROGRAMS

This commit is contained in:
Chris Dorman 2022-05-18 11:54:01 -07:00
parent c091373610
commit 213a2ff451
2 changed files with 4 additions and 1 deletions

View File

@ -76,7 +76,7 @@
#define ENCSTEPODD 2 #define ENCSTEPODD 2
#define ENCSTEPEVEN 3 #define ENCSTEPEVEN 3
#define PATH "/bin/" #define PATH "/bin:/usr/bin:/usr/local/bin:/freon/bin:/opt"
// HELP PRINTOUT // HELP PRINTOUT

View File

@ -23,6 +23,9 @@ int main(int argc, char **argv)
FILE *script; FILE *script;
char script_line[MAX_STRING_BUFSIZE+1]; char script_line[MAX_STRING_BUFSIZE+1];
// set environment variables
setenv("PATH", PATH, 0);
if (argc == 1) if (argc == 1)
{ {
script = stdin; script = stdin;