From dcbd4a575acf22c46ea168dfca6eae765c2c2194 Mon Sep 17 00:00:00 2001 From: Sheng Date: Thu, 23 Jan 2020 17:25:51 +0800 Subject: [PATCH] Added fonts directory --- tests/data/fonts/.gitignore | 0 webssh/settings.py | 4 ++-- webssh/static/css/fonts/.gitignore | 0 3 files changed, 2 insertions(+), 2 deletions(-) create mode 100644 tests/data/fonts/.gitignore create mode 100644 webssh/static/css/fonts/.gitignore diff --git a/tests/data/fonts/.gitignore b/tests/data/fonts/.gitignore new file mode 100644 index 0000000..e69de29 diff --git a/webssh/settings.py b/webssh/settings.py index 53d19dd..45c59f9 100644 --- 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 new file mode 100644 index 0000000..e69de29