diff options
Diffstat (limited to 'gn3/app.py')
-rw-r--r-- | gn3/app.py | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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"], |