mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-19 14:41:25 +00:00
fix: using blender python executable
This commit is contained in:
@@ -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)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user