From 444490a3f355d2bdc12f8a03ff62b2db5378fc82 Mon Sep 17 00:00:00 2001 From: Francesco Luzzana Date: Wed, 6 Apr 2022 14:50:37 +0200 Subject: [PATCH] relative path for the games list --- screenless/bureau/soup/soup.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/screenless/bureau/soup/soup.py b/screenless/bureau/soup/soup.py index 267a004..6864592 100644 --- a/screenless/bureau/soup/soup.py +++ b/screenless/bureau/soup/soup.py @@ -29,7 +29,9 @@ class Soup(Bureau): """ Prints one entry from the one sentence game ideas. """ - with open('onesentenceg.yml', 'r') as f: + + onesentencegames = os.path.join(self.mdir, 'onesentenceg.yml') + with open(onesentencegames, 'r') as f: games = yaml.load(f) game = choice(games['games'])