Hi,
    There's an object [rootinfo] in my library that gives the path, name and "parent level" of the root canvas https://github.com/sebshader/shadylib
& there's also [ggee/getdir] which gives the path of the "parent level" provided in the argument

-Seb

-----Original Message-----
From: Philip Stone <pkstone@ucdavis.edu>
To: pd-list@lists.iem.at <pd-list@lists.iem.at>
Sent: Thu, Apr 18, 2019 1:12 pm
Subject: [PD] Directory of opened patch

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
 
 
_______________________________________________
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list