On Fri, 2022-01-07 at 22:58 +0100, Roman Haefeli wrote: > > What I think should happen when instantiating any [file] objects is > to > set the working directory to the patch's directory and not to Pd's > start directory.
I was wondering how objects before [file] did select a path for writing. If I am not mistaken, [text] uses canvas_makefilename() for converting a given path or filename to an absolute path. It first checks if the given path is absolute by checking for '/' (first byte) or ':' (second byte) and prepends the canvas' own directory to it, if is relative. It's basically a clumsy way to switch the working directory to the patch's directory. And it's what I have to do now when using [file]. I need to be enlightened: What is the benefit of using Pd's start location as working directory in [file]? Roman
signature.asc
Description: This is a digitally signed message part
_______________________________________________ [email protected] mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
