aboutsummaryrefslogtreecommitdiff
path: root/gn3/app.py
diff options
context:
space:
mode:
Diffstat (limited to 'gn3/app.py')
-rw-r--r--gn3/app.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/gn3/app.py b/gn3/app.py
index c8f0c5a..955a9b3 100644
--- a/gn3/app.py
+++ b/gn3/app.py
@@ -28,6 +28,7 @@ from gn3.api.sampledata import sampledata
from gn3.api.llm import gnqa
from gn3.auth import oauth2
from gn3.case_attributes import caseattr
+from gn3.fs_helpers import get_tmpdir
def create_app(config: Union[Dict, str, None] = None) -> Flask:
@@ -57,6 +58,9 @@ def create_app(config: Union[Dict, str, None] = None) -> Flask:
logging.info("Guix Profile: '%s'.", os.environ.get("GUIX_PROFILE"))
logging.info("Python Executable: '%s'.", sys.executable)
+ if "TMPDIR" in os.environ:
+ app.config.from_envvar('TMPDIR')
+
CORS(
app,
origins=app.config["CORS_ORIGINS"],