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

@ -324,7 +324,7 @@ class Loader:
(_load_filter_type(T.PointerProperty), self._load_pointer),
(_load_filter_array, self._load_array),
(_load_filter_type(T.CollectionProperty), self._load_collection),
# (_load_filter_default, self._load_default)
(_load_filter_default, self._load_default)
]

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()