[PD] directory of root canvas

Hans-Christoph Steiner hans at at.or.at
Sun Oct 4 20:28:50 CEST 2009


[getdir] may be what you want.  Its in 'ggee' and included in Pd- 
extended.

.hc

On Oct 4, 2009, at 1:45 PM, Orm Finnendahl wrote:

> Hi,
>
> sorry, this is probably trivial, but I can't seem to find the
> solution: I use a self written external in a pd patch, which on setup
> loads initialization data from subdirectories with relative pathnames
> to the directory the patch lives in.
>
> Loading the pd patch from a terminal within the patches' directory
> leads to pd having this directory as the current directory with all
> relative paths working from there. Loading the patch with
> double-clicking it will lead to pd starting from it's default
> directory and the relative pathnames don't work from within the
> external's setup routine.
>
> How is it possible to determine and then set pd's current/default
> directory to the path, the external's root canvas is located at from
> within the external?
>
> --
> Orm
>
> _______________________________________________
> Pd-list at iem.at mailing list
> UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list



----------------------------------------------------------------------------

"Making boring techno music is really easy with modern tools," he
says, "but with live coding, boring techno is much harder." - Chris  
McCormick








More information about the Pd-list mailing list