Changeset 1003 for trunk


Ignore:
Timestamp:
May 15, 2008, 4:05:42 PM (16 years ago)
Author:
dkearney
Message:

definging _mkdir in tool.tcl and removing it from analyzer because the code that uses it has moved

Location:
trunk/gui/scripts
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/gui/scripts/analyzer.tcl

    r903 r1003  
    6565    protected method _simOutput {message}
    6666    protected method _resultTooltip {}
    67     protected method _mkdir {dir}
    6867
    6968    private variable _tool ""          ;# belongs to this tool
     
    991990
    992991# ----------------------------------------------------------------------
    993 # USAGE: _mkdir <directory>
    994 #
    995 # Used internally to create the <directory> in the file system.
    996 # The parent directory is also created, as needed.
    997 # ----------------------------------------------------------------------
    998 itcl::body Rappture::Analyzer::_mkdir {dir} {
    999     set parent [file dirname $dir]
    1000     if {"." != $parent && "/" != $parent} {
    1001         if {![file exists $parent]} {
    1002             _mkdir $parent
    1003         }
    1004     }
    1005     file mkdir $dir
    1006 }
    1007 
    1008 # ----------------------------------------------------------------------
    1009992# USAGE: _fixSimControl
    1010993#
  • trunk/gui/scripts/tool.tcl

    r903 r1003  
    2929    public method abort {}
    3030
     31    protected method _mkdir {dir}
    3132    protected method _output {data}
    3233
     
    297298
    298299# ----------------------------------------------------------------------
     300# USAGE: _mkdir <directory>
     301#
     302# Used internally to create the <directory> in the file system.
     303# The parent directory is also created, as needed.
     304# ----------------------------------------------------------------------
     305itcl::body Rappture::Tool::_mkdir {dir} {
     306    set parent [file dirname $dir]
     307    if {"." != $parent && "/" != $parent} {
     308        if {![file exists $parent]} {
     309            _mkdir $parent
     310        }
     311    }
     312    file mkdir $dir
     313}
     314
     315
     316# ----------------------------------------------------------------------
    299317# USAGE: abort
    300318#
Note: See TracChangeset for help on using the changeset viewer.