From d1da6ed6b0a6911c3b24e012ea051c9253ce8479 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Mon, 10 Dec 2018 22:43:10 +0100 Subject: pull in dulldream celery server --- server/app/main/paths.py | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 server/app/main/paths.py (limited to 'server/app/main/paths.py') diff --git a/server/app/main/paths.py b/server/app/main/paths.py new file mode 100644 index 00000000..69c21627 --- /dev/null +++ b/server/app/main/paths.py @@ -0,0 +1,19 @@ +from flask import current_app as app + +def get_paths(agree): + if agree: + return ( + app.config['UPLOADS'], + app.config['RENDERS'], + app.config['JSON_DIR'], + app.config['UPLOADS_URI'], + app.config['RENDERS_URI'], + ) + else: + return ( + app.config['UPLOADS_PRIVATE'], + app.config['RENDERS_PRIVATE'], + app.config['JSON_PRIVATE_DIR'], + app.config['UPLOADS_PRIVATE_URI'], + app.config['RENDERS_PRIVATE_URI'], + ) -- cgit v1.2.3-70-g09d2