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:
268
268
269
269
270
270
def load_env_from_script ():
271
+ if "LLAMA_ROOT" in os .environ and os .environ ["LLAMA_ROOT" ]:
272
+ return
273
+
271
274
system = platform .system ()
272
275
273
276
if system == "Windows" :
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ export TORNADO_ROOT="${LLAMA_ROOT}/external/tornadovm"
12
12
export TORNADO_SDK=" ${TORNADO_ROOT} /bin/sdk"
13
13
14
14
# 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} "
16
16
17
17
# Optional: Set JAVA_HOME if required
18
18
# 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"
12
12
set " TORNADO_SDK = %TORNADO_ROOT% \bin\sdk"
13
13
14
14
REM 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% "
16
16
17
17
REM Optional: Set JAVA_HOME if needed
18
18
REM set "JAVA_HOME=C:\Path\To\GraalVM"
You can’t perform that action at this time.
0 commit comments