File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -9,40 +9,5 @@ rm -f "$2/$1.info"
99rm -f " $2 /$1 .err"
1010rm -f " $2 /$1 .flavia.dat"
1111
12- # include .bashrc if it exists
13- if [ -f " $HOME /.bashrc" ]; then
14- . " $HOME /.bashrc"
15- fi
16-
17-
18-
19- # gid redefines LD_LIBRARY_PATH to its own libs directory
20- # and maintains OLD_LD_LIBRARY_PATH with previous settings
21- # therefore, we use the OLD_LD_LIBRARY_PATH and prepend the path to the kratos libs
22- if [ " $OLD_LD_LIBRARY_PATH " != " " ]; then
23- export LD_LIBRARY_PATH=" $3 /exec/Kratos" :" $3 /exec/Kratos/libs" :$OLD_LD_LIBRARY_PATH
24- else
25- # do not add the ':'
26- export LD_LIBRARY_PATH=" $3 /exec/Kratos" :" $3 /exec/Kratos/libs"
27- fi
28-
29- # Prevents the PYTHONHOME error from happening and isolate possible python repacks present
30- # in the system and interfeering with runkratos
31- # export PYTHONHOME="$3/exec/Kratos"
32- export PYTHONPATH=" $3 /exec/Kratos/python34.zip" :" $3 /exec/Kratos" :$PYTHONPATH
33-
34-
35- # if mac
36- KERNEL=` uname -s`
37- if [ $KERNEL = " Darwin" ]; then
38- KERNEL_NAME=" macosx"
39- export DYLD_LIBRARY_PATH=" $3 /exec/Kratos" :" $3 /exec/Kratos/libs" :$DYLD_LIBRARY_PATH
40- export DYLD_FALLBACK_LIBRARY_PATH=" $3 /exec/Kratos" :" $3 /exec/Kratos/libs" :$DYLD_FALLBACK_LIBRARY_PATH
41- export PYTHONPATH=" $3 /exec/Kratos/Lib" :" $3 /exec/Kratos/Lib/lib-dynload/" :$PYTHONPATH
42- export PYTHONHOME=" $3 /exec/Kratos"
43- else
44- KERNEL_NAME=" linux"
45- fi
46-
4712# Run Python using the script MainKratos.py
48- python3 MainKratos.py > " $2 /$1 .info" 2> " $2 /$1 .err"
13+ python3 MainKratos.py > " $2 /$1 .info" 2> " $2 /$1 .err"
You can’t perform that action at this time.
0 commit comments