On 22/10/2024 15:55, Charles K. Neimog wrote:
Hi everyone!
I need to get the paths declared using [declare -path <mypath>] to be able to add them to the Python search path when using the py4pd object.
There is some way to get it?
I found solutions on github, but all then redefine t_canvasenvironment. Then they do something like this:
t_canvasenvironment *e = canvas_getenv(x->canvas); for (int i = 0; 1; i++) { const char *path_elem = namelist_get(e->ce_searchpath, i); if (!path_elem) { break; } }
But this don't seems pretty good 🙃. There is some less hacky way?
`canvas_open()`?
gamsrd IOhannes