| OLD | NEW |
| (Empty) |
| 1 #!/usr/bin/python | |
| 2 # Copyright 2015 The Chromium Authors. All rights reserved. | |
| 3 # Use of this source code is governed by a BSD-style license that can be | |
| 4 # found in the LICENSE file. | |
| 5 | |
| 6 import os | |
| 7 import sys | |
| 8 import urllib | |
| 9 from zipfile import ZipFile | |
| 10 | |
| 11 def main(): | |
| 12 if not os.getcwd().endswith("hunspell_dictionaries"): | |
| 13 print "Please run this file from the hunspell_dictionaries directory" | |
| 14 return 1 | |
| 15 urllib.urlretrieve( | |
| 16 "http://downloads.sourceforge.net/wordlist/hunspell-en_US-2015.05.18.zip", | |
| 17 "en_US.zip") | |
| 18 urllib.urlretrieve( | |
| 19 "http://downloads.sourceforge.net/wordlist/hunspell-en_CA-2015.05.18.zip", | |
| 20 "en_CA.zip") | |
| 21 ZipFile("en_US.zip").extractall() | |
| 22 ZipFile("en_CA.zip").extractall() | |
| 23 os.remove("en_US.zip") | |
| 24 os.remove("en_CA.zip") | |
| 25 return 0 | |
| 26 | |
| 27 if __name__ == '__main__': | |
| 28 sys.exit(main()) | |
| OLD | NEW |