diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2018-12-10 22:43:10 +0100 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2018-12-10 22:43:10 +0100 |
| commit | d1da6ed6b0a6911c3b24e012ea051c9253ce8479 (patch) | |
| tree | 0a34f3cb34ff150c5ce85dafcec67315e80f2914 /server/app/main/paths.py | |
| parent | 774be2b5323e4bc4b0a61f1ff998fd910627d23b (diff) | |
pull in dulldream celery server
Diffstat (limited to 'server/app/main/paths.py')
| -rw-r--r-- | server/app/main/paths.py | 19 |
1 files changed, 19 insertions, 0 deletions
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'], + ) |
