Changeset 994 for trunk/gsascmds.tcl


Ignore:
Timestamp:
Aug 18, 2010 4:55:20 PM (10 years ago)
Author:
toby
Message:

fix running GSAS programs where install location has spaces

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsascmds.tcl

    r992 r994  
    14061406        StartGRWND $prog
    14071407        if {$tcl_platform(platform) == "windows"} {
    1408             append cmd " \"$expgui(gsasexe)/${prog}.exe \" "
     1408            append cmd " \"[file attributes $expgui(gsasexe)/${prog}.exe -shortname]\" "
    14091409        } else {
    14101410            if {$cmd != ""} {append cmd "\;"}
     
    14481448                set expgui(needpowpref_why) ""
    14491449                if {$tcl_platform(platform) == "windows"} {
    1450                     append cmd " \"$expgui(gsasexe)/powpref.exe $expnam \" "
     1450                    append cmd " \"[file attributes $expgui(gsasexe)/powpref.exe -shortname] $expnam \" "
    14511451                } else {
    14521452                    if {$cmd != ""} {append cmd "\;"}
     
    14571457        StartGRWND $prog
    14581458        if {$tcl_platform(platform) == "windows"} {
    1459             append cmd " \"$expgui(gsasexe)/${prog}.exe $expnam \" "
     1459            append cmd " \"[file attributes $expgui(gsasexe)/${prog}.exe -shortname] $expnam \" "
    14601460        } elseif {$expgui(MacroRunning) && !$expgui(ShowGENLES)} {
    14611461            append cmd " \" [file join $expgui(gsasexe) $prog] $expnam \" "
     
    26962696                # might help here
    26972697                exec $env(COMSPEC) /c \
    2698                         "start [file join $expgui(scriptdir) $script] $cmd"
     2698                        "start [file attributes [file join $expgui(scriptdir) $script] -shortname] $cmd"
    26992699            }
    27002700            file delete -force expgui.lck
     
    27092709                # run in background
    27102710                exec $env(COMSPEC) /c \
    2711                         "start [file join $expgui(scriptdir) $script] $cmd" &
     2711                        "start [file attributes [file join $expgui(scriptdir) $script] -shortname] $cmd"
    27122712                if {$expgui(MacroRunning)} {
    27132713                    update
Note: See TracChangeset for help on using the changeset viewer.