[PD] converting an absolute to relative file path
muranyia at gmail.com
Mon May 9 13:18:39 CEST 2011
On Mon, May 9, 2011 at 10:40, matteo sisti sette <matteosistisette at gmail.com
> I'd like to use [openpanel] to let a user easily chose a file without
> having to type its name, but then I would like to take the relative
> path of the file (relative to the patch) rather than its full absolute
> path. Is there a way to accomplish that?
> Is there some external that would take an absolute path as a symbol,
> compare it to the current working directory, and return a relative
> path to the same file?
> Alternatively, is there an external that can return the current
> working directory? On top of that, I could build an abstraction that
> would do almost what I need at least under some restrictions (e.g.
> when the file is in a descendant of the current folder)....
I use [absolutepath] and [relativepath] from moonlib.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Pd-list