Changeset 810
- Timestamp:
- Dec 4, 2009 5:12:26 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsascmds.tcl
- Property rcs:date changed from 2004/09/20 15:32:20 to 2004/09/28 22:34:07
- Property rcs:lines changed from +2 -2 to +34 -9
- Property rcs:rev changed from 1.58 to 1.59
r805 r810 2435 2435 return 2436 2436 } 2437 # pause is hard coded in the .BAT file 2437 if {[info command winutils::shell] == "" && \ 2438 [info command winexec] == ""} { 2439 MyMessageBox -parent . -title "Setup error" \ 2440 -message {Error -- Use "Neither WINEXEC not WINTILS were found. Can't do anything!"} \ 2441 -icon error -type darn -default darn \ 2442 -helplink "expgui_Win_readme.html Winexec" 2443 return 2444 } 2445 # N. B. pause is now hard coded in the .BAT file 2438 2446 # 2439 2447 # loop over multiple commands … … 2466 2474 # replace the forward slashes with backward 2467 2475 regsub -all / $cmd \\ cmd 2468 winexec -d [file nativename [pwd]] \ 2476 if {[info command winutils::shell] != ""} { 2477 winutils::shell [file join $expgui(scriptdir) gsastcl.bat] $cmd 2478 } else { 2479 winexec -d [file nativename [pwd]] \ 2469 2480 [file join $expgui(scriptdir) gsastcl.bat] $cmd 2481 } 2470 2482 if {$wait} { 2471 2483 tkwait window .lock … … 2580 2592 # required tool (Rez) are installed 2581 2593 set app [file join $expgui(gsasdir) expgui.app] 2582 if {[file exists $app] && [file exists /Developer/Tools/Rez]} { 2594 if {[file exists /Developer/Tools/Rez]} { 2595 set RezApp /Developer/Tools/Rez 2596 } elseif {[file exists [file join $expgui(gsasdir) Rez]]} { 2597 set RezApp [file join $expgui(gsasdir) Rez] 2598 } else { 2599 set RezApp {} 2600 } 2601 if {[file exists /Developer/Tools/SetFile]} { 2602 set SetFileApp /Developer/Tools/SetFile 2603 } elseif {[file exists [file join $expgui(gsasdir) SetFile]]} { 2604 set SetFileApp [file join $expgui(gsasdir) SetFile] 2605 } else { 2606 set SetFileApp {} 2607 } 2608 if {[file exists $app] && $RezApp != ""} { 2583 2609 # make a resource file 2584 2610 set l [string length $app]; incr l … … 2594 2620 puts $fp $str 2595 2621 close $fp 2596 exec /Developer/Tools/Rezsetapp.r -o $expnative -a2622 exec $RezApp setapp.r -o $expnative -a 2597 2623 file delete -force setapp.r 2598 2624 } … … 2600 2626 # assign an icon to the data file, if it and the required tools exist 2601 2627 set icon [file join $expgui(gsasdir) gsasicon.r] 2602 if {[file exists $icon] && [file exists /Developer/Tools/Rez] && \ 2603 [file exists /Developer/Tools/SetFile]} { 2604 exec /Developer/Tools/Rez [file nativename $icon] -o $expnative -a 2605 exec /Developer/Tools/SetFile -a C $expnative 2606 } 2607 } 2628 if {[file exists $icon] && $RezApp != "" && $SetFileApp != ""} { 2629 exec $RezApp [file nativename $icon] -o $expnative -a 2630 exec $SetFileApp -a C $expnative 2631 } 2632 }
Note: See TracChangeset
for help on using the changeset viewer.