From b229eb5f8c93cd51bf867c6e1c17e832b8015ce9 Mon Sep 17 00:00:00 2001 From: David Kerkeslager Date: Wed, 12 Aug 2020 22:08:46 -0400 Subject: [PATCH] Expand ~ in .styxrc path --- styx/settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/styx/settings.py b/styx/settings.py index e647c67..acfb631 100644 --- a/styx/settings.py +++ b/styx/settings.py @@ -22,7 +22,7 @@ BASE_DIR = Path(__file__).resolve(strict=True).parent.parent # See https://docs.djangoproject.com/en/3.1/howto/deployment/checklist/ try: - with open('~/.styxrc', 'r') as styxrc: + with open(os.path.expanduser('~/.styxrc'), 'r') as styxrc: LOCAL_SETTINGS = json.loads(styxrc.read()) except FileNotFoundError: -- 2.20.1