<div dir="ltr"><div>Answering my own question for the archives:</div><div><br></div><div>Switching file finding to use canvas_open in the external seems to have fixed the issue. I can now load successfully with no file path set in preferences by using [declare -path s4pd]. :-)</div><div><br></div><div>iain</div><div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Oct 9, 2021 at 8:43 AM Iain Duncan <<a href="mailto:iainduncanlists@gmail.com">iainduncanlists@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Re the first point, this is in conflict with what I received from others in another thread. So if there are other opinions on this I would still like to hear.<div><br></div><div>Re the second, that's a different issue, and I am literally working on it right now. Please note that that ticket was not closed, nor did I indicate anywhere that it was solved in rc3.</div><div><br></div><div>iain</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Oct 9, 2021 at 8:38 AM Alexandre Torres Porres <<a href="mailto:porres@gmail.com" target="_blank">porres@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">You don't and shouldn't need declare at all, you just have a single external and its name is the same as the folder's name "s4pd".<div><br></div><div>The object should be able to load files on the same folder as the help patch or in folders relative to it, but it still can't (with version rc3).</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Em sáb., 9 de out. de 2021 às 12:09, Iain Duncan <<a href="mailto:iainduncanlists@gmail.com" target="_blank">iainduncanlists@gmail.com</a>> escreveu:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Oh I think I might have stumbled on the answer, but confirmation would be lovely. I was using open_via_path to find the file, is it that I need to use canvas_open for the declare path to work?<div><br></div><div>iain</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Oct 9, 2021 at 8:02 AM Iain Duncan <<a href="mailto:iainduncanlists@gmail.com" target="_blank">iainduncanlists@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi folks, I'm still working on the packaging of s4pd with regard to finding scheme files, and am almost there, but having some weirdness with [declare -path]. It was recommended to me that I advise people in the docs to put a [declare -path s4pd] in their patches so that finding scm files would "just work".<div><br></div><div>My understanding is that this would add the s4pd path to their file path, meaning that files in that dir should get found, just as if one had put it explicitly into the Pd path preferences. However, this doesn't seem to do that on MacOS. </div><div><br></div><div>I run make install, and it puts my stuff in ~/Library/Pd/, so that there is a directory, ~/Library/Pd/s4pd, with all the files, at the same level as the external. But if I try to use a patch with an s4pd object and a [declare -path s4pd], the declare path appears to make no difference: I still need to go add ~/Library/Pd/s4pd to file preferences for the files to be found.</div><div><br></div><div>Hopefully someone can clear up what is happening here, or my misunderstanding of what the declare is supposed to do. </div><div><br></div><div>thanks!</div></div>
</blockquote></div>
_______________________________________________<br>
Pd-dev mailing list<br>
<a href="mailto:Pd-dev@lists.iem.at" target="_blank">Pd-dev@lists.iem.at</a><br>
<a href="https://lists.puredata.info/listinfo/pd-dev" rel="noreferrer" target="_blank">https://lists.puredata.info/listinfo/pd-dev</a><br>
</blockquote></div>
</blockquote></div>
</blockquote></div></div>