feat: investigation on crash
fix: python server path
This commit is contained in:
@ -324,7 +324,7 @@ class Loader:
|
|||||||
(_load_filter_type(T.PointerProperty), self._load_pointer),
|
(_load_filter_type(T.PointerProperty), self._load_pointer),
|
||||||
(_load_filter_array, self._load_array),
|
(_load_filter_array, self._load_array),
|
||||||
(_load_filter_type(T.CollectionProperty), self._load_collection),
|
(_load_filter_type(T.CollectionProperty), self._load_collection),
|
||||||
# (_load_filter_default, self._load_default)
|
(_load_filter_default, self._load_default)
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
|
@ -19,6 +19,7 @@ from gpu_extras.batch import batch_for_shader
|
|||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|
||||||
python_path = Path(bpy.app.binary_path_python)
|
python_path = Path(bpy.app.binary_path_python)
|
||||||
|
cwd_for_subprocesses = python_path.parent
|
||||||
|
|
||||||
from . import client, draw, helpers, ui
|
from . import client, draw, helpers, ui
|
||||||
from .libs import umsgpack
|
from .libs import umsgpack
|
||||||
@ -319,9 +320,11 @@ class session_create(bpy.types.Operator):
|
|||||||
global client_instance
|
global client_instance
|
||||||
|
|
||||||
net_settings = context.scene.session_settings
|
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(
|
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)
|
# time.sleep(0.1)
|
||||||
|
|
||||||
bpy.ops.session.join()
|
bpy.ops.session.join()
|
||||||
|
Reference in New Issue
Block a user