From 56325d5791dd4da67441e19a6b60a29ddacdf07b Mon Sep 17 00:00:00 2001 From: mescalinum Date: Sun, 18 Oct 2009 14:04:23 +0000 Subject: oops... ::auto_path??? svn path=/trunk/externals/tclpd/; revision=12607 --- tcl_setup.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tcl_setup.cxx b/tcl_setup.cxx index 93ba404..b54914b 100644 --- a/tcl_setup.cxx +++ b/tcl_setup.cxx @@ -37,11 +37,11 @@ void tclpd_setup(void) { post("Tcl loader: %s was not found via the -path!", "tcl" PDSUF); } - Tcl_SetVar(tcl_for_pd, "DIR", dirresult, 0); - Tcl_Eval(tcl_for_pd, "set auto_path [linsert $auto_path $DIR]"); + Tcl_SetVar(tcl_for_pd, "TCLPD_DIR", dirresult, 0); + Tcl_Eval(tcl_for_pd, "set ::auto_path [linsert $::auto_path $TCLPD_DIR]"); Tcl_Eval(tcl_for_pd, "package provide Tclpd " TCLPD_VERSION); - if(Tcl_Eval(tcl_for_pd, "source $DIR/tcl.tcl") == TCL_OK) { + if(Tcl_Eval(tcl_for_pd, "source $TCLPD_DIR/tcl.tcl") == TCL_OK) { post("Tcl loader: loaded %s/tcl.tcl", dirresult); } -- cgit v1.2.1