From 668f5f3e85ff1c2e05e1525c785d63ac7e022daa Mon Sep 17 00:00:00 2001 From: Raphael Roberts Date: Mon, 6 May 2019 12:09:39 -0500 Subject: [PATCH] Fixed bug where loading of spellchecker wasn't started --- main.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index d1e3bff..bcdfa45 100755 --- a/main.py +++ b/main.py @@ -13,6 +13,9 @@ def init_spell_checker(): SPELL.word_frequency.load_text_file('extra_words.txt') +future = POOL.submit(init_spell_checker) + + def canidates(letters, min=2): pos = [] for length in range(min, len(letters)+1): @@ -34,7 +37,7 @@ if __name__ == "__main__": if letters == ":quit:": break if SPELL is None: - POOL.submit(init_spell_checker) + future.result() pos = canidates(letters) inp = None guessed = set()