Changeset 94 for branches/rakefile-work/convertdb.rb
- Timestamp:
- 07/24/08 19:47:42 (4 months ago)
- Files:
-
- 1 modified
-
branches/rakefile-work/convertdb.rb (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/rakefile-work/convertdb.rb
r92 r94 111 111 default = nil 112 112 wndirs = Pathname.glob( Pathname.getwd + 'WordNet-*' ) 113 unless wndirs.empty? 114 default = wndirs.first 113 localdict = Pathname.getwd + 'dict' 114 if !wndirs.empty? 115 default = wndirs.first + 'dict' 116 elsif localdict.exist? 117 default = localdict 115 118 else 116 default = '/usr/local/WordNet-3.0' 117 end 118 119 # :TODO: Do some more intelligent searching here 119 default = '/usr/local/WordNet-3.0/dict' 120 end 121 120 122 message "Where can I find the WordNet data files?\n" 121 datadir = prompt_with_default( "Data directory", default + "/dict")123 datadir = prompt_with_default( "Data directory", default ) 122 124 datadir = Pathname.new( datadir ) 123 125
