Changeset 1159 for branches/sandbox


Ignore:
Timestamp:
Jul 26, 2011 3:50:04 PM (9 years ago)
Author:
toby
Message:

fix windows errors

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/sandbox/liveplot

    r1158 r1159  
    21052105    }
    21062106    if {[file exists $gspath]} {
    2107         set ps2pdfcmd "$gspath -q -P- -dSAFER -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=\"\$pdfoutname\" -c save pop -f \"\$psoutname\""
     2107        set ps2pdfcmd "$gspath -q -P- -dSAFER -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=\$pdfoutname -c save pop -f \$psoutname"
    21082108    }
    21092109} else {
     
    23932393                        -initialfile "[file rootname $::expnam].pdf"]
    23942394    if { $pdfoutname == "" } { return }
     2395    cd [file dirname $pdfoutname]
     2396    set pdfoutname [regsub -all " " [file tail $pdfoutname] "_"]
    23952397    set rootname [file root $pdfoutname]
    23962398    set csvoutname "$rootname.csv"
     
    24102412    if {$msg == ""} {
    24112413        if {[catch { exec $::gnuplotpath $gplotname } err]} {
    2412             append msg "Error in running gnuplot: $err"
     2414            if {[string first "Warning" $err] == -1} {
     2415                append msg "Error in running gnuplot: $err"
     2416            }
    24132417        }
    24142418        if {![file exists $psoutname]} {
Note: See TracChangeset for help on using the changeset viewer.