File tree Expand file tree Collapse file tree 3 files changed +5
-2
lines changed
Expand file tree Collapse file tree 3 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -268,6 +268,9 @@ class LlamaRunner:
268268
269269
270270def load_env_from_script ():
271+ if "LLAMA_ROOT" in os .environ and os .environ ["LLAMA_ROOT" ]:
272+ return
273+
271274 system = platform .system ()
272275
273276 if system == "Windows" :
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ export TORNADO_ROOT="${LLAMA_ROOT}/external/tornadovm"
1212export TORNADO_SDK=" ${TORNADO_ROOT} /bin/sdk"
1313
1414# Add TornadoVM and LLaMA bin directories to PATH
15- export PATH=" ${PATH} :${TORNADO_SDK} :${LLAMA_ROOT} /bin "
15+ export PATH=" ${PATH} :${TORNADO_SDK} :${LLAMA_ROOT} "
1616
1717# Optional: Set JAVA_HOME if required
1818# export JAVA_HOME=/path/to/graalvm
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ set "TORNADO_ROOT=%LLAMA_ROOT%\external\tornadovm"
1212set " TORNADO_SDK = %TORNADO_ROOT% \bin\sdk"
1313
1414REM Add TornadoVM SDK and LLaMA3 bin to PATH
15- set " PATH = %TORNADO_SDK% ;%LLAMA_ROOT% \bin ;%PATH% "
15+ set " PATH = %TORNADO_SDK% ;%LLAMA_ROOT% ;%PATH% "
1616
1717REM Optional: Set JAVA_HOME if needed
1818REM set "JAVA_HOME=C:\Path\To\GraalVM"
You can’t perform that action at this time.
0 commit comments