diff options
author | mescalinum <mescalinum@users.sourceforge.net> | 2009-10-18 14:04:23 +0000 |
---|---|---|
committer | mescalinum <mescalinum@users.sourceforge.net> | 2009-10-18 14:04:23 +0000 |
commit | 56325d5791dd4da67441e19a6b60a29ddacdf07b (patch) | |
tree | 70c38d7f6d2343271c2f580167c3e25948582d13 | |
parent | 0bd63454e3e9a60937e0ab0568c84d21dfacb409 (diff) |
oops... ::auto_path???
svn path=/trunk/externals/tclpd/; revision=12607
-rw-r--r-- | tcl_setup.cxx | 6 |
1 files 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); } |