Skip to content

Commit

Permalink
Added fonts directory
Browse files Browse the repository at this point in the history
  • Loading branch information
huashengdun committed Jan 23, 2020
1 parent b805605 commit dcbd4a5
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
Empty file added tests/data/fonts/.gitignore
Empty file.
4 changes: 2 additions & 2 deletions webssh/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
Empty file.

0 comments on commit dcbd4a5

Please sign in to comment.