Improvement

This commit is contained in:
Harshil Darji 2016-08-02 23:44:38 +05:30
parent f68690f296
commit 21a348f0b0

View File

@ -5,7 +5,7 @@ LETTERS_AND_SPACE = UPPERLETTERS + UPPERLETTERS.lower() + ' \t\n'
def loadDictionary():
path = os.path.split(os.path.realpath(__file__))
dictionaryFile = open(path[0] + '\Dictionary.txt')
dictionaryFile = open(path[0] + '/Dictionary.txt')
englishWords = {}
for word in dictionaryFile.read().split('\n'):
englishWords[word] = None