commit dcbd4a575acf22c46ea168dfca6eae765c2c2194 parent b80560527853310b0d774c07e5cc2b0ea13c96cc Author: Sheng <webmaster0115@gmail.com> Date: Thu, 23 Jan 2020 17:25:51 +0800 Added fonts directory Diffstat:
A | tests/data/fonts/.gitignore | | | 0 | |
M | webssh/settings.py | | | 4 | ++-- |
A | webssh/static/css/fonts/.gitignore | | | 0 |
3 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/tests/data/fonts/.gitignore b/tests/data/fonts/.gitignore diff --git a/webssh/settings.py b/webssh/settings.py @@ -158,8 +158,8 @@ def get_origin_setting(options): def get_font_setting(font, font_dir): - filenames = {f for f in os.listdir(font_dir) if - os.path.isfile(os.path.join(font_dir, f))} + filenames = {f for f in os.listdir(font_dir) if not f.startswith('.') + and os.path.isfile(os.path.join(font_dir, f))} if font: if font not in filenames: raise ValueError( diff --git a/webssh/static/css/fonts/.gitignore b/webssh/static/css/fonts/.gitignore