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
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@iem.at http://lists.puredata.info/listinfo/pd-dev