Fix Windows installer runtime detection and node import

This commit is contained in:
Geekatplay Dev
2026-04-04 17:32:52 -06:00
parent 5c9e94c972
commit fd82ef006d
2 changed files with 15 additions and 6 deletions
+12 -6
View File
@@ -5,12 +5,18 @@ cd /d "%~dp0"
set "PYTHON_CMD="
if exist "%~dp0..\..\python_embeded\python.exe" (
set "PYTHON_CMD=%~dp0..\..\python_embeded\python.exe"
) else if exist "%~dp0..\..\python_embedded\python.exe" (
set "PYTHON_CMD=%~dp0..\..\python_embedded\python.exe"
) else if exist "%~dp0.venv\Scripts\python.exe" (
set "PYTHON_CMD=%~dp0.venv\Scripts\python.exe"
for %%P in (
"%~dp0..\..\python_embeded\python.exe"
"%~dp0..\..\python_embedded\python.exe"
"%~dp0..\..\..\python_embeded\python.exe"
"%~dp0..\..\..\python_embedded\python.exe"
"%~dp0..\..\.venv\Scripts\python.exe"
"%~dp0..\..\venv\Scripts\python.exe"
"%~dp0.venv\Scripts\python.exe"
) do (
if not defined PYTHON_CMD if exist "%%~fP" (
set "PYTHON_CMD=%%~fP"
)
)
if defined PYTHON_CMD (
+3
View File
@@ -10,6 +10,9 @@ import numpy as np
from PIL import Image, ImageDraw
import torch
BRAND_ROOT = "Geekatplay HyperTile"
try:
import node_helpers as _node_helpers
except ImportError: