diff options
author | B. Stack <bgstack15@gmail.com> | 2022-03-16 14:44:00 -0400 |
---|---|---|
committer | B. Stack <bgstack15@gmail.com> | 2022-03-16 14:44:00 -0400 |
commit | 8412ee1c8edef3ae5f04087f31b75e12c746de67 (patch) | |
tree | ae3b4b419058ce8999b3524892d3bfd72cd81c3c | |
parent | improve installation (diff) | |
download | fifconfig-8412ee1c8edef3ae5f04087f31b75e12c746de67.tar.gz fifconfig-8412ee1c8edef3ae5f04087f31b75e12c746de67.tar.bz2 fifconfig-8412ee1c8edef3ae5f04087f31b75e12c746de67.zip |
-rw-r--r-- | fifconfig.py | 5 |
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. """ |