[PD-dev] tcl load-path on OSX builds

Miller Puckette msp at ucsd.edu
Wed Oct 9 17:39:58 CEST 2013


What I do for things like this:

In Pd, open the file with canvas_open() which returns the directory the
file was found in;

close it again without using it;

pass the full patthname to tcl, or wherever, to use.

An example in Pd source is binbuf_read_via_canvas()

cheers
Miller

On Wed, Oct 09, 2013 at 03:42:34PM +0200, Orm Finnendahl wrote:


> Hi,
> 
>  on linux, loading a tcl file with sys_vgui("source img.tcl\n"); works
> if the file is in the current directory, whereas on OSX the file is
> not found *anywhere* (I tried various locations, also the ones
> appearing in the response of "$auto_path" in pd's tcl command line
> without success). Also loading additional files within the tcl code
> only works with absolute pathnames on OSX. I tried with pd-extended
> and pd-vanilla (both 0.44-3) with the same results.
> 
> Is this a misconfiguration and can this get solved somehow?
> 
> --
> Orm
> 
> _______________________________________________
> Pd-dev mailing list
> Pd-dev at iem.at
> http://lists.puredata.info/listinfo/pd-dev



More information about the Pd-dev mailing list