diff options
author | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2011-11-11 23:42:08 +0000 |
---|---|---|
committer | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2011-11-11 23:42:08 +0000 |
commit | 9af7bda60aa9a321cd0f595692b58c6d1e15d9ea (patch) | |
tree | 05991d45f6f95ebfecc38b6ccfedafd870a9f671 | |
parent | b4791d3cd1cc6bfe759cef5635f54c38a3b58396 (diff) |
include $current_canvas in the 'variable ${self}::' technique so it works
svn path=/trunk/externals/tclfile/; revision=15727
-rw-r--r-- | mkdir.tcl | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -5,10 +5,9 @@ proc mkdir::constructor {self args} { if {![namespace exists $self]} { namespace eval $self {} } - variable ${self}::filename - set @current_canvas [canvas_getcurrent] # set to blank so the var always mkdir - set filename {} + variable ${self}::filename {} + variable ${self}::current_canvas [canvas_getcurrent] # add second inlet (first created by default) pd::add_inlet $self list @@ -21,6 +20,7 @@ proc mkdir::0_symbol {self args} { } proc mkdir::0_bang {self} { + variable ${self}::current_canvas variable ${self}::filename if {[file pathtype $filename] eq "absolute"} { file mkdir $filename |