diff --git a/hangman/hangman.py b/hangman/hangman.py index faa90bf..60e4589 100644 --- a/hangman/hangman.py +++ b/hangman/hangman.py @@ -193,8 +193,11 @@ class Hangman: def _getphrase(self): """Get a new phrase for the game and returns it""" + openpath = cog_data_path("hangman") - with cog_data_path("hangman").open('r') as phrasefile: + openpath = openpath.joinpath("data") + + with openpath.open('r') as phrasefile: phrases = phrasefile.readlines() outphrase = ""