Skip to content

Commit

Permalink
Added os.getcwd() to example script to make it more OS agnostic. Also…
Browse files Browse the repository at this point in the history
… added strikethrough formatting and note regarding broken link in readme file.
  • Loading branch information
blairg23 committed Mar 14, 2018
1 parent cac7992 commit 8e74ad0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -4,7 +4,7 @@ english-words
A text file containing 466k English words.

While searching for a list of english words (for an auto-complete tutorial)
I found: http://stackoverflow.com/questions/2213607/how-to-get-english-language-word-database which refers to http://www.infochimps.com/datasets/word-list-350000-simple-english-words-excel-readable
I found: http://stackoverflow.com/questions/2213607/how-to-get-english-language-word-database which refers to ~~http://www.infochimps.com/datasets/word-list-350000-simple-english-words-excel-readable~~ (link no longer available).

No idea why infochimps put the word list inside an excel (.xls) file.

Expand Down
2 changes: 1 addition & 1 deletion read_english_dictionary.py
Expand Up @@ -3,7 +3,7 @@

def load_words():
try:
filename = os.path.dirname(sys.argv[0])+"\\"+"words_dictionary.json"
filename = os.path.join(os.getcwd(), "words_dictionary.json")
with open(filename,"r") as english_dictionary:
valid_words = json.load(english_dictionary)
return valid_words
Expand Down

0 comments on commit 8e74ad0

Please sign in to comment.