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
#yiv5827315665 #yiv5827315665 #yiv5827315665 -- filtered {panose-1:2 4 5 3 5 4 6 3 2 4;}#yiv5827315665 filtered {font-family:Calibri;panose-1:2 15 5 2 2 2 4 3 2 4;}#yiv5827315665 p.yiv5827315665MsoNormal, #yiv5827315665 li.yiv5827315665MsoNormal, #yiv5827315665 div.yiv5827315665MsoNormal {margin:0in;margin-bottom:.0001pt;font-size:12.0pt;font-family:sans-serif;}#yiv5827315665 a:link, #yiv5827315665 span.yiv5827315665MsoHyperlink {color:#0563C1;text-decoration:underline;}#yiv5827315665 a:visited, #yiv5827315665 span.yiv5827315665MsoHyperlinkFollowed {color:#954F72;text-decoration:underline;}#yiv5827315665 span.yiv5827315665EmailStyle17 {font-family:sans-serif;color:windowtext;}#yiv5827315665 .yiv5827315665MsoChpDefault {font-family:sans-serif;}#yiv5827315665 filtered {margin:1.0in 1.0in 1.0in 1.0in;}#yiv5827315665 div.yiv5827315665WordSection1 {}#yiv5827315665 #yiv5827315665 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