X-Git-Url: https://code.kerkeslager.com/?p=styx.blog;a=blobdiff_plain;f=styx%2Fsettings.py;h=acfb6313571474a07ba71c46d552612fe7b530e8;hp=e647c671c043aaa44146002cbf173fda0fab83ee;hb=b229eb5f8c93cd51bf867c6e1c17e832b8015ce9;hpb=7d3c9dcd1f304493510d82f0a9683e44f9227008 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: