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.
This commit is contained in:
@@ -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:
|
with open(config_file, 'r') as f:
|
||||||
c = yaml.safe_load(f)
|
c = yaml.safe_load(f)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user