relative path for the games list

workspace
km0 3 years ago
parent 478d568c2a
commit 444490a3f3

@ -29,7 +29,9 @@ class Soup(Bureau):
""" """
Prints one entry from the one sentence game ideas. 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) games = yaml.load(f)
game = choice(games['games']) game = choice(games['games'])

Loading…
Cancel
Save