aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorB. Stack <bgstack15@gmail.com>2022-03-16 14:44:00 -0400
committerB. Stack <bgstack15@gmail.com>2022-03-16 14:44:00 -0400
commit8412ee1c8edef3ae5f04087f31b75e12c746de67 (patch)
treeae3b4b419058ce8999b3524892d3bfd72cd81c3c
parentimprove installation (diff)
downloadfifconfig-8412ee1c8edef3ae5f04087f31b75e12c746de67.tar.gz
fifconfig-8412ee1c8edef3ae5f04087f31b75e12c746de67.tar.bz2
fifconfig-8412ee1c8edef3ae5f04087f31b75e12c746de67.zip
load FIFCONFIG_CONF from envHEADmaster
-rw-r--r--fifconfig.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/fifconfig.py b/fifconfig.py
index 6ff8d17..3dae327 100644
--- a/fifconfig.py
+++ b/fifconfig.py
@@ -22,12 +22,13 @@
# Documentation: see README.md
from flask import Flask, request, jsonify, url_for
+import os
app = Flask(__name__)
try:
- app.config.from_pyfile('fifconfig.conf')
+ app.config.from_pyfile(os.environ['FIFCONFIG_CONF'])
except:
- pass
+ app.config.from_pyfile('fifconfig.conf')
def _make_dict_safe_for_text(response):
""" Mostly for converting the silly x-forwarded-for ImmutableList so that it does not show that class name. """
bgstack15