more attempts

pull/5/head
Bobloy 7 years ago
parent 81bba03aff
commit 03d74f24fc

@ -193,8 +193,11 @@ class Hangman:
def _getphrase(self): def _getphrase(self):
"""Get a new phrase for the game and returns it""" """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() phrases = phrasefile.readlines()
outphrase = "" outphrase = ""

Loading…
Cancel
Save