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 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84
|
#############################################################
#############################################################
if not IsBound(NEATO_PATH)
then
NEATO_PATH:=Filename( DirectoriesSystemPrograms( ), "neato" );
if NEATO_PATH=fail
or not IsExecutableFile(NEATO_PATH)
then
Info(InfoWarning,1,"HAP warning: Set NEATO_PATH manually if needed.");
else
NEATO_PATH:=Concatenation(NEATO_PATH," ");
MakeReadOnlyGlobal("NEATO_PATH");
fi;
fi;
#############################################################
#############################################################
if not IsBound(DOT_PATH)
then
DOT_PATH:=Filename( DirectoriesSystemPrograms( ), "dot" );
if DOT_PATH=fail
or not IsExecutableFile(DOT_PATH)
then
Info(InfoWarning,1,"HAP warning: Set DOT_PATH manually if needed.");
else
DOT_PATH:=Concatenation(DOT_PATH," ");
MakeReadOnlyGlobal("DOT_PATH");
fi;
fi;
#############################################################
#############################################################
if not IsBound(DISPLAY_PATH)
then
DISPLAY_PATH:=Filename( DirectoriesSystemPrograms( ), "display" );
if DISPLAY_PATH=fail
or not IsExecutableFile(DISPLAY_PATH)
then
Info(InfoWarning,1,"HAP warning: Set DISPLAY_PATH manually if needed.");
else
DISPLAY_PATH:=Concatenation(DISPLAY_PATH," ");
MakeReadOnlyGlobal("DISPLAY_PATH");
fi;
fi;
#############################################################
#############################################################
if not IsBound(BROWSER_PATH)
then
BROWSER_PATH:=Filename( DirectoriesSystemPrograms( ), "firefox" );
if BROWSER_PATH=fail
or not IsExecutableFile(BROWSER_PATH)
then
Info(InfoWarning,1,"HAP warning: Set BROWSER_PATH manually if needed.");
else
BROWSER_PATH:=Concatenation(BROWSER_PATH," ");
MakeReadOnlyGlobal("BROWSER_PATH");
fi;
fi;
#############################################################
#############################################################
if not IsBound(ASY_PATH)
then
ASY_PATH:=Filename( DirectoriesSystemPrograms( ), "asy" );
if ASY_PATH=fail
or not IsExecutableFile(ASY_PATH)
then
Info(InfoWarning,1,"HAP warning: Set ASY_PATH manually if needed.");
else
ASY_PATH:=Concatenation(ASY_PATH," ");
MakeReadOnlyGlobal("ASY_PATH");
fi;
fi;
#############################################################
|