aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormjfernez <mjfernez@gmail.com>2021-06-16 00:20:33 -0400
committermjfernez <mjfernez@gmail.com>2021-06-16 00:20:33 -0400
commit03e3f1d478866c68be79adb5d555d8d0d77a312b (patch)
tree161662431eac34bc26e0be52f8a9f3f46cbea58f
parent945594509e6a19ab0229e9949691e2f7652ea500 (diff)
downloadezcms-03e3f1d478866c68be79adb5d555d8d0d77a312b.tar.gz
hotfix: allowed hiddent top site dirs
-rw-r--r--server.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/server.py b/server.py
index e77485c..ea04690 100644
--- a/server.py
+++ b/server.py
@@ -22,7 +22,8 @@ def setup():
else:
s = './templates/site/'
top_dirs = [
- x for x in os.listdir(s) if os.path.isdir(s + x)
+ x for x in os.listdir(s) \
+ if os.path.isdir(s + x) and not x.startswith('.')
]
app.config.update(
{