blob: 63b0fc364ea5e86c93331b56b4f58481a59bbffa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
$NetBSD: patch-ah,v 1.9 2006/05/22 19:20:04 wiz Exp $
--- routines/pvm/pvm_proc_ctrl.c.orig 2005-01-07 20:49:25.000000000 +0000
+++ routines/pvm/pvm_proc_ctrl.c
@@ -388,7 +388,8 @@ void C2F(scipvmspawn)(char *task, int *
char cmd[256];
char *arg[4];
int nargs= -1;
-
+ char *path;
+
arg[0] = NULL;
cmd[0] = 0;
@@ -401,7 +402,13 @@ void C2F(scipvmspawn)(char *task, int *
strcpy(cmd, "scilex.exe");
#else
/* I really need scilab here for gtk -version */
- strcpy(cmd, "scilab");
+ if (path = getenv("SCI")){
+ strcpy(cmd,path);
+ strcat(cmd,"/bin/scilab");
+ }
+ else {
+ strcpy(cmd, "scilab");
+ }
#endif
#if (defined __MSC__) || (defined __ABSC__) || defined(__MINGW32__)
if ( _stricmp(task,"null") != 0)
|