[PD] directory of root canvas

James Dunn james at 4thharmonic.com
Sun Oct 4 20:52:01 CEST 2009


That reminds me of something - is there something like this to get the
number of files in a directory?

thanks

James

2009/10/4 Hans-Christoph Steiner <hans at at.or.at>

>
> [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
>
>
>
>
>
>
> _______________________________________________
> Pd-list at iem.at mailing list
> UNSUBSCRIBE and account-management ->
> http://lists.puredata.info/listinfo/pd-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20091004/03f71171/attachment.htm>


More information about the Pd-list mailing list