I’m trying to figure out how to use [loadpanel] to load a data file from a subdirectory of a patch, and I’m trying to make this patch and its auxiliary files distributable, so I don’t want to have to use absolute paths.
I’ve searched the archives on this, and there was a recent discussion about how passing [symbol .( to [loadpanel] didn’t open the filesystem at a particularly useful (or at least, consistent between platforms) starting directory. What I understand from that discussion is that there is still no way to obtain the current patch’s starting directory to enable relative-path loading. Is that correct?
If not in vanilla, are there any externals?
Phil Stone UC Davis
here's the discussion on github.
https://github.com/pure-data/pure-data/issues/557
i consider this a bug since the help says a bang "Starts open panel in current directory"
So until it gets fixed, you can try an external to get the current directory, although we've also had discussions that we should have such an object in vanilla. But again, you're still depending on it until anything happens.
I can suggest [else/dir] from my library
everyone else just uses [ggee/getdir], which is much simpler and just spits the directory
cheers
Em qui, 18 de abr de 2019 às 17:13, Philip Stone pkstone@ucdavis.edu escreveu:
I’m trying to figure out how to use [loadpanel]
you mean [openpanel], right? :)
Thanks for the pointers to externals, Alexandre, and yes, I did mean “[openpanel]”. 😊
I think this is an important functionality, and would love to see it in Vanilla.
Phil Stone UC Davis
From: Alexandre Torres Porres porres@gmail.com Date: Thursday, April 18, 2019 at 2:05 PM To: Philip Stone pkstone@ucdavis.edu Cc: "pd-list@lists.iem.at" pd-list@lists.iem.at Subject: Re: [PD] Directory of opened patch
here's the discussion on github.
https://github.com/pure-data/pure-data/issues/557
i consider this a bug since the help says a bang "Starts open panel in current directory"
So until it gets fixed, you can try an external to get the current directory, although we've also had discussions that we should have such an object in vanilla. But again, you're still depending on it until anything happens.
I can suggest [else/dir] from my library
everyone else just uses [ggee/getdir], which is much simpler and just spits the directory
cheers
Em qui, 18 de abr de 2019 às 17:13, Philip Stone <pkstone@ucdavis.edumailto:pkstone@ucdavis.edu> escreveu: I’m trying to figure out how to use [loadpanel]
you mean [openpanel], right? :)