From 03d74f24fc8debf93f6d10b964030adaf4eb40da Mon Sep 17 00:00:00 2001 From: Bobloy Date: Fri, 4 May 2018 17:01:56 -0400 Subject: [PATCH] more attempts --- hangman/hangman.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 = ""