{"action":"created","issue":{"url":"https://api.github.com/repos/luboslenco/zblend_blender/issues/7","labels_url":"https://api.github.com/repos/luboslenco/zblend_blender/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/luboslenco/zblend_blender/issues/7/comments","events_url":"https://api.github.com/repos/luboslenco/zblend_blender/issues/7/events","html_url":"https://github.com/luboslenco/zblend_blender/issues/7","id":57927322,"number":7,"title":"Process also spawns a Blender instance","user":{"login":"Nananas","id":5729357,"avatar_url":"https://avatars.githubusercontent.com/u/5729357?v=3","gravatar_id":"","url":"https://api.github.com/users/Nananas","html_url":"https://github.com/Nananas","followers_url":"https://api.github.com/users/Nananas/followers","following_url":"https://api.github.com/users/Nananas/following{/other_user}","gists_url":"https://api.github.com/users/Nananas/gists{/gist_id}","starred_url":"https://api.github.com/users/Nananas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nananas/subscriptions","organizations_url":"https://api.github.com/users/Nananas/orgs","repos_url":"https://api.github.com/users/Nananas/repos","events_url":"https://api.github.com/users/Nananas/events{/privacy}","received_events_url":"https://api.github.com/users/Nananas/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-02-17T14:01:09Z","updated_at":"2015-02-18T21:16:18Z","closed_at":null,"body":"The following lines spawn a blender.exe instead of a python process. So this opens a new Blender instance. :astonished:\r\n```python\r\n p = Process(target=run_server)\r\n p.start()\r\n```\r\n\r\nThis apparently only happens on a Windows.\r\n\r\nA possible solution might be to get the system-installed python distribution. But there might not be one... I only tested for bugs. It could be that it actually does not work properly :innocent: :\r\n```python\r\n# get the local python distribution\r\nlocal_python_path = subprocess.check_output(\"where python\").decode(\"utf-8\").strip()\r\nmultiprocessing.set_executable(local_python_path) \r\np = Process(target=run_server)\r\np.start()\r\n```\r\n\r\nNote that an operating system check is needed first, as `where` is a Windows command afaik."},"comment":{"url":"https://api.github.com/repos/luboslenco/zblend_blender/issues/comments/74949506","html_url":"https://github.com/luboslenco/zblend_blender/issues/7#issuecomment-74949506","issue_url":"https://api.github.com/repos/luboslenco/zblend_blender/issues/7","id":74949506,"user":{"login":"Nananas","id":5729357,"avatar_url":"https://avatars.githubusercontent.com/u/5729357?v=3","gravatar_id":"","url":"https://api.github.com/users/Nananas","html_url":"https://github.com/Nananas","followers_url":"https://api.github.com/users/Nananas/followers","following_url":"https://api.github.com/users/Nananas/following{/other_user}","gists_url":"https://api.github.com/users/Nananas/gists{/gist_id}","starred_url":"https://api.github.com/users/Nananas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nananas/subscriptions","organizations_url":"https://api.github.com/users/Nananas/orgs","repos_url":"https://api.github.com/users/Nananas/repos","events_url":"https://api.github.com/users/Nananas/events{/privacy}","received_events_url":"https://api.github.com/users/Nananas/received_events","type":"User","site_admin":false},"created_at":"2015-02-18T21:16:18Z","updated_at":"2015-02-18T21:16:18Z","body":"Can't you use `node.js` to host a local webserver? Or is `node.js` not a dependency anymore?"}}