summaryrefslogtreecommitdiff
path: root/cli/app/settings
diff options
context:
space:
mode:
authorlens <lens@neural.garden>2020-12-26 20:59:17 +0000
committerlens <lens@neural.garden>2020-12-26 20:59:17 +0000
commit7c15f34186622410e25ee85c01d832e48e012140 (patch)
treee0a8dbd5e7b6a3936e7b9a666c2622ecc7ff1a65 /cli/app/settings
parent94234db6a771f687788d3decc6dd1ba01731f7af (diff)
parent85bfb949fea4e69dabc5b7544ce70d26d3d11393 (diff)
Merge branch 'master' of asdf.us:swimmer
Diffstat (limited to 'cli/app/settings')
-rw-r--r--cli/app/settings/app_cfg.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/cli/app/settings/app_cfg.py b/cli/app/settings/app_cfg.py
index 0d724c7..5fc4982 100644
--- a/cli/app/settings/app_cfg.py
+++ b/cli/app/settings/app_cfg.py
@@ -58,10 +58,7 @@ URL_MEDIA = join(URL_DATA, 'media')
URL_UPLOADS = join(URL_DATA, 'uploads')
URL_EXPORTS = join(URL_DATA, 'exports')
-if 'cli' in os.getcwd():
- DIR_STATIC = os.path.abspath('../static')
-else:
- DIR_STATIC = os.path.abspath('static')
+DIR_STATIC = join(DIR_APP, 'static')
HASH_TREE_DEPTH = 3 # for sha256 subdirs
HASH_BRANCH_SIZE = 3 # for sha256 subdirs