fix: using blender python executable

This commit is contained in:
Ziad-I
2024-07-16 11:24:49 +03:00
committed by Dion Moult
parent 5d4a3d504c
commit f7a3b0706b
+4 -1
View File
@@ -22,6 +22,7 @@ import blenderbim.core.tool
import blenderbim.tool as tool import blenderbim.tool as tool
import ifcopenshell.api.sequence import ifcopenshell.api.sequence
import socket import socket
import sys
import os import os
import subprocess import subprocess
import webbrowser import webbrowser
@@ -71,7 +72,9 @@ class Web(blenderbim.core.tool.Web):
ws_path = os.path.join(webui_path, "sioserver.py") ws_path = os.path.join(webui_path, "sioserver.py")
ws_process = subprocess.Popen(["python", ws_path, "--p", str(port), "--host", "127.0.0.1"], cwd=webui_path) ws_process = subprocess.Popen(
[sys.executable, ws_path, "--p", str(port), "--host", "127.0.0.1"], cwd=webui_path
)
cls.open_web_browser(port) cls.open_web_browser(port)
cls.set_is_running(True) cls.set_is_running(True)