projects
/
styx.blog
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7d3c9dc
)
Expand ~ in .styxrc path
author
David Kerkeslager
<kerkeslager@gmail.com>
Thu, 13 Aug 2020 02:08:46 +0000
(22:08 -0400)
committer
David Kerkeslager
<kerkeslager@gmail.com>
Thu, 13 Aug 2020 02:08:46 +0000
(22:08 -0400)
styx/settings.py
patch
|
blob
|
history
diff --git
a/styx/settings.py
b/styx/settings.py
index
e647c67
..
acfb631
100644
(file)
--- 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: