feat: investigation on crash

fix: python server path
This commit is contained in:
Swann Martinez
2019-05-09 18:21:19 +02:00
parent f25f893a83
commit 035afa7eb5
2 changed files with 6 additions and 3 deletions

View File

@ -19,6 +19,7 @@ from gpu_extras.batch import batch_for_shader
from pathlib import Path
python_path = Path(bpy.app.binary_path_python)
cwd_for_subprocesses = python_path.parent
from . import client, draw, helpers, ui
from .libs import umsgpack
@ -319,9 +320,11 @@ class session_create(bpy.types.Operator):
global client_instance
net_settings = context.scene.session_settings
print(python_path)
script = os.path.join(os.path.dirname(os.path.abspath(__file__)),"server.py")
server = subprocess.Popen(
[str(python_path), 'server.py'], shell=False, stdout=subprocess.PIPE)
[str(python_path),script],shell=False, stdout=subprocess.PIPE)
# time.sleep(0.1)
bpy.ops.session.join()