new-words

diff new-words.py @ 42:3ec83a7cc544

minifix: psyco activated if installed
author Igor Chubin <igor@chub.in>
date Mon Jan 24 06:31:42 2011 +0100 (2011-01-24)
parents 4629e08b0d87
children d532e7b52ab2
line diff
     1.1 --- a/new-words.py	Sun Jan 23 18:18:19 2011 +0100
     1.2 +++ b/new-words.py	Mon Jan 24 06:31:42 2011 +0100
     1.3 @@ -10,6 +10,11 @@
     1.4  import subprocess
     1.5  import sys
     1.6  import Stemmer
     1.7 +try:
     1.8 +    import psyco
     1.9 +    psyco.full()
    1.10 +except:
    1.11 +    pass
    1.12  
    1.13  config = {
    1.14      'config_directory': os.environ['HOME'] + '/.new-words',