Ignore:
Timestamp:
Mar 18, 2009, 2:59:21 PM (16 years ago)
Author:
gah
Message:

preliminary HQ output from molvisviewer; unexpand tabs; all jpeg generation at 100%

File:
1 edited

Legend:

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

    r924 r1342  
    2828    variable optionParser [interp create -safe]
    2929    foreach cmd [$optionParser eval {info commands}] {
    30         $optionParser hide $cmd
     30        $optionParser hide $cmd
    3131    }
    3232    # this lets us ignore unrecognized commands in the file:
     
    4545    variable optionParser
    4646    foreach {name proc} $args {
    47         $optionParser alias $name $proc
     47        $optionParser alias $name $proc
    4848    }
    4949}
     
    7171    global auto_index
    7272    foreach name [array names auto_index *_init_resources] {
    73         eval $name
     73        eval $name
    7474    }
    7575
     
    8080    #
    8181    if {[info exists env(SESSIONDIR)]} {
    82         set file $env(SESSIONDIR)/resources
    83         if {![file exists $file]} {
    84             return 0
    85         }
     82        set file $env(SESSIONDIR)/resources
     83        if {![file exists $file]} {
     84            return 0
     85        }
    8686
    87         if {[catch {
    88             set fid [open $file r]
    89             set info [read $fid]
    90             close $fid
    91             $optionParser eval $info
    92         } result]} {
    93             if {"" != $callback} {
    94                 after 1 [list $callback -title Error -icon error -message "Error in resources file:\n$result"]
    95             }
    96             return 0
    97         }
     87        if {[catch {
     88            set fid [open $file r]
     89            set info [read $fid]
     90            close $fid
     91            $optionParser eval $info
     92        } result]} {
     93            if {"" != $callback} {
     94                after 1 [list $callback -title Error -icon error -message "Error in resources file:\n$result"]
     95            }
     96            return 0
     97        }
    9898    }
    9999    return 1
Note: See TracChangeset for help on using the changeset viewer.