Changeset 4127 for trunk/gui/apps
- Timestamp:
- Jan 16, 2014, 10:51:33 AM (11 years ago)
- Location:
- trunk/gui/apps
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gui/apps/launcher.tcl
r3177 r4127 24 24 # redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES. 25 25 # ====================================================================== 26 package require RapptureGUI 27 set guidir $RapptureGUI::library 28 29 package require RapptureBuilder 30 set blddir $RapptureBuilder::library 31 32 package require RapptureTester 33 set testdir $RapptureTester::library 34 35 set mainscript [file join $guidir scripts main.tcl] 26 set mainscript "" 36 27 set alist "" 37 28 set toolxml "" … … 45 36 switch -- $opt { 46 37 -run { 38 package require RapptureGUI 39 set guidir $RapptureGUI::library 47 40 set mainscript [file join $guidir scripts main.tcl] 41 set reqpkgs Tk 48 42 } 49 43 -builder { 44 package require RapptureBuilder 45 set blddir $RapptureBuilder::library 50 46 set mainscript [file join $blddir scripts main.tcl] 47 set reqpkgs Tk 51 48 } 52 49 -tester { 50 package require RapptureTester 51 set testdir $RapptureTester::library 53 52 set mainscript [file join $testdir scripts main.tcl] 53 set reqpkgs Tk 54 54 } 55 55 -tool { … … 65 65 lappend alist $opt [lindex $argv 0] 66 66 set argv [lrange $argv 1 end] 67 } 68 -auto { 69 # for the tester in automatic mode -- don't load Tk 70 package require RapptureTester 71 set testdir $RapptureTester::library 72 set mainscript [file join $testdir scripts auto.tcl] 73 set reqpkgs "" 67 74 } 68 75 -load { … … 81 88 puts stderr " rappture ?-run? ?-tool toolFile? ?-nosim 0/1? ?-load file file ...?" 82 89 puts stderr " rappture -builder ?-tool toolFile?" 83 puts stderr " rappture -tester ?- tool toolFile? ?-testdir directory?"90 puts stderr " rappture -tester ?-auto? ?-tool toolFile? ?-testdir directory?" 84 91 exit 1 85 92 } 86 93 } 87 94 } 95 } 96 97 # If no arguments, assume that it's the -run option 98 if {$mainscript eq ""} { 99 package require RapptureGUI 100 set guidir $RapptureGUI::library 101 set mainscript [file join $guidir scripts main.tcl] 102 set reqpkgs Tk 88 103 } 89 104 … … 97 112 # blt::bgexec. It doesn't try to redirect stderr into a file. 98 113 set argv $alist 99 package require Tk 114 foreach name $reqpkgs { 115 package require $name 116 } 100 117 source $mainscript -
trunk/gui/apps/rappture.in
r3177 r4127 16 16 dir=`dirname $0` 17 17 . $dir/rappture.env 18 exec tclsh $dir/launcher.tcl --"$@"18 exec tclsh $dir/launcher.tcl "$@"
Note: See TracChangeset
for help on using the changeset viewer.