Ticket #41320: patch-Tcl-wnOpen.tcl.diff

File patch-Tcl-wnOpen.tcl.diff, 930 bytes (added by dstrubbe (David Strubbe), 11 years ago)
  • Tcl/wnOpen.tcl

    old new  
    7676    #########################################################
    7777    # get the filehead out of filename (case.struct --> case)
    7878    set pwd [pwd]
    79     cd [file dirname $file]
     79    file copy $file $system(SCRDIR)
     80    cd $system(SCRDIR)
    8081    set filehead [file tail [FileHead $file]]
    8182    if { [catch {exec $system(FORDIR)/str2xcr $filehead}] } {
    82         ErrorDialog "error while executing \"str2xcr\" program"
     83        set mypwd [pwd]
     84        ErrorDialog "error while executing $system(FORDIR)/str2xcr $filehead in $mypwd"
    8385        return
    8486    }
    85     # now copy $filehead.xcr to $system(SCRDIR)/xc_str2xcr.$$
    86     file rename -force ${filehead}.xcr $system(SCRDIR)/xc_str2xcr.$system(PID)
     87    # now copy $filehead.xcr to xc_str2xcr.$$
     88    file rename -force ${filehead}.xcr xc_str2xcr.$system(PID)
    8789    cd $pwd
    8890
    8991    #