From cd93d611290f7a8c4610928de60c51afc652333d Mon Sep 17 00:00:00 2001 From: Nate Bowman Date: Wed, 14 Oct 2026 19:09:29 -0400 Subject: [PATCH] Use relative path to config file I don't feel like changing it every time I move the project. Note that this will not work unless settings.yaml exists in your working directory when you run the Python command. --- flashcards/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flashcards/config.py b/flashcards/config.py index 55b2789..a26b08e 100644 --- a/flashcards/config.py +++ b/flashcards/config.py @@ -4,7 +4,7 @@ import yaml -config_file = '/home/nate/aoe/flashcards/settings.yaml' +config_file = 'settings.yaml' with open(config_file, 'r') as f: c = yaml.safe_load(f)