From e0b0b2f976c61225a178c7715caf2656a1f6741f Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Sat, 15 Dec 2018 21:32:51 +0100 Subject: moving stuff --- old/server/app/main/paths.py | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 old/server/app/main/paths.py (limited to 'old/server/app/main/paths.py') diff --git a/old/server/app/main/paths.py b/old/server/app/main/paths.py new file mode 100644 index 00000000..69c21627 --- /dev/null +++ b/old/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