Changeset 683 for trunk/gui


Ignore:
Timestamp:
Apr 27, 2007, 6:13:32 AM (17 years ago)
Author:
mmc
Message:

Fixed filexfer so that it tries to find the exportfile/importfile
commands if they're not on the user's path. Also, it creates the
spool directory automatically if it doesn't exist.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gui/scripts/filexfer.tcl

    r682 r683  
    4242        set path [auto_execok $prog]
    4343        if {"" == $path} {
    44             foreach dir {/apps/filexfer /apps/bin} {
     44            foreach dir {/apps/filexfer/bin /apps/bin} {
    4545                set p [file join $dir $prog]
    46                 if {[file executable $path]} {
     46                if {[file executable $p]} {
    4747                    set path $p
    4848                    break
     
    100100
    101101        set dir ~/data/sessions/$env(SESSION)/spool
     102        if {![file exists $dir]} {
     103            catch {file mkdir $dir}
     104        }
     105
    102106        set i 0
    103107        foreach {path label desc} $controlList {
Note: See TracChangeset for help on using the changeset viewer.