Browse Source

Added fonts directory

pull/126/head
Sheng 5 years ago
parent
commit
dcbd4a575a
  1. 0
      tests/data/fonts/.gitignore
  2. 4
      webssh/settings.py
  3. 0
      webssh/static/css/fonts/.gitignore

0
tests/data/fonts/.gitignore vendored

4
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(

0
webssh/static/css/fonts/.gitignore vendored

Loading…
Cancel
Save