- Timestamp:
- Dec 7, 2010 1:15:28 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gui/scripts/tool.tcl
r1929 r1978 28 28 public method run {args} 29 29 public method abort {} 30 public method getRunFile {} 30 31 31 32 protected method _mkdir {dir} … … 34 35 private variable _installdir "" ;# installation directory for this tool 35 36 private variable _outputcb "" ;# callback for tool output 37 private variable _runFile "" ;# location of last created run.xml 36 38 private common job ;# array var used for blt::bgexec jobs 37 39 private common jobnum 0 ;# counter for unique job number … … 260 262 # see if the job was aborted 261 263 if {[regexp {^KILLED} $job(control)]} { 264 set _runFile "" 262 265 return [list 0 "ABORT"] 263 266 } … … 287 290 } 288 291 } 292 set _runFile $file 289 293 } else { 290 294 set status 1 291 295 set result "Can't find result file in output.\nDid you call Rappture 292 296 ::result in your simulator?" 297 set _runFile "" 293 298 } 294 299 return [list $status $result] … … 337 342 } 338 343 } 344 345 # ---------------------------------------------------------------------- 346 # USAGE: getRunFile 347 # 348 # Returns the file name of the last generated run.xml, as opposed to a 349 # library object as returned by the run method. 350 # ---------------------------------------------------------------------- 351 itcl::body Rappture::Tool::getRunFile {} { 352 return $_runFile 353 } 354
Note: See TracChangeset
for help on using the changeset viewer.