summaryrefslogtreecommitdiff
path: root/jimbrella/config.py
diff options
context:
space:
mode:
Diffstat (limited to 'jimbrella/config.py')
-rw-r--r--jimbrella/config.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/jimbrella/config.py b/jimbrella/config.py
index 85833d0..e59aabc 100644
--- a/jimbrella/config.py
+++ b/jimbrella/config.py
@@ -1,7 +1,11 @@
import os
import toml
-config_path = os.environ["JIMBRELLA_CONFIG"] or "/opt/jimbrella/config.toml"
+config_path = (
+ os.environ["JIMBRELLA_CONFIG"]
+ if "JIMBRELLA_CONFIG" in os.environ
+ else "/opt/jimbrella/config.toml"
+)
f = open(config_path)
config = toml.load(f)