<div dir="ltr"><div dir="ltr">Em seg., 4 de out. de 2021 às 12:52, IOhannes m zmoelnig <<a href="mailto:zmoelnig@iem.at">zmoelnig@iem.at</a>> escreveu:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
to make things a bit nicer, you could *additionally* search for <br>
"s4pd/s4pd.scm", and only bail out if neither of the two can be found.<br><br>
you could also check how other language bindings do this, e.g. [tclpd] <br>
or [pdlua]<br>
(both of which somehow try to get the path of the library file, and then <br>
use that to load their auxiliary scripts)<br></blockquote><div><br></div><div>Yeah, I think this is the best option and it's what I was suggesting Ian to do. The [s4pd] can be easily loaded without declare if it resides in a folder also called "s4pd" in "externals", cause Pd just searches inside folders with the same name as the object.<br><br>Hence, if the object also looks for these needed files on the same folder, it's as simple as can be.</div><div><br></div><div>Moreover, other files that you open with [s4pd] (specific scripts) can follow the same usual way of searching for them in the same folder as the patch, and in the user added paths (also being able to specify subfolders and whatnot via "folde/" prefixes and stuff)</div></div></div>