aboutsummaryrefslogtreecommitdiff
path: root/Tools/MathematicaMisc/RunKranc.m
blob: abdb282b7e216e9502c118ba8a816066f3e64e7f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
script = $CommandLine[[-1]];
krancDir = Environment["KRANCDIR"];

$Path = Join[$Path,
  {krancDir <> "/Tools/CodeGen",
   krancDir <> "/Tools/MathematicaMisc",
   krancDir <> "/Tools/External"}];
Needs["Errors`"];
Needs["KrancThorn`"];
If[Environment["KRANCVERBOSE"] == "yes",
  SetDebugLevel[InfoFull]];

exception = Catch[Get[script], KrancError];
PrintError[exception];

Quit[];