Changeset 769 for trunk/import_cif.tcl
- Timestamp:
- Dec 4, 2009 5:11:43 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/import_cif.tcl
- Property rcs:date changed from 2003/08/11 19:22:56 to 2004/01/30 00:39:56
- Property rcs:lines changed from +3 -3 to +13 -9
- Property rcs:rev changed from 1.11 to 1.12
r726 r769 4 4 # define info used in addcmds.tcl 5 5 catch { 6 # make sure vars get set at global level 7 global CIF 6 8 source [file join $expgui(scriptdir) browsecif.tcl] 7 9 set description "Crystallographic Information File (CIF)" … … 215 217 216 218 proc CallBrowseCIF {txt blocklist selected frame} { 217 global CIF CIF_index CIF_dataname_index expgui 218 219 catch { 220 source [file join $expgui(scriptdir) CIF_index] 221 } 222 223 # add location of these files & the typical GSAS data directory 224 # to the dictionary search path 225 lappend CIF(cif_path) $expgui(scriptdir) [file join [file dirname $expgui(scriptdir)] data] 219 # is there a defined list of dictionary files? 220 if {[catch {set ::CIF(dictfilelist)}]} { 221 set dictfilelist [glob -nocomplain \ 222 [file join $::expgui(gsasdir) data *.dic]] 223 foreach file $dictfilelist { 224 lappend ::CIF(dictfilelist) $file 225 set ::CIF(dict_$file) 1 226 } 227 } 228 # load the initial CIF dictionaries 229 LoadDictIndices 226 230 227 231 BrowseCIF $txt $blocklist $selected $frame
Note: See TracChangeset
for help on using the changeset viewer.