diff --git a/tests/data/fonts/.gitignore b/tests/data/fonts/.gitignore new file mode 100644 index 00000000..e69de29b diff --git a/webssh/settings.py b/webssh/settings.py index 53d19ddb..45c59f92 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 00000000..e69de29b