Start with script?
Hi @ikappaki ,
This is a great tool. Do you know of a way that I can invoke blender and initiation the repl via a script? The following yields operation not permitted errors.
```sh
/Applications/Blender.app/Contents/MacOS/Blender --python scripts/blender_interop/start_basilisp_nrepl.py
```
```python
import sys
import os
from basilisp_blender.nrepl import server_start
def start_nrepl_server():
project_root = os.getcwd() # Or specify your project root path
nrepl_port_file = os.path.join(project_root, ".nrepl-port")
shutdown_fn = server_start(nrepl_port_filepath=nrepl_port_file)
print(f"nREPL server started. Port file: {nrepl_port_file}")
return shutdown_fn
shutdown_fn = start_nrepl_server()
```
关闭于 2024-08-13 4 条评论