Permalink
Browse files

update path with ~

  • Loading branch information...
sdpython committed Jan 8, 2018
1 parent 0e4d67d commit 161032b033b4bdc17eff491da3e594cdb223720a
Showing with 3 additions and 2 deletions.
  1. +3 −2 src/code_beatrix/faq/faq_video.py
@@ -635,8 +635,9 @@ def video_text(text, font=None, fontsize=32, size=None,
if sys.platform.startswith('win'):
font = "arial.ttf"
else:
d = '~/.local/share/fonts'
if os.path.exists(d):
exp = os.path.expanduser('~')
d = os.path.join(exp, '.local', 'share', 'fonts')
if not os.path.exists(d):
raise FileNotFoundError("Unable to find '{0}'".format(d))
font = os.path.join(d, "Ubuntu-Regular.ttf")
if not os.path.exists(font):

0 comments on commit 161032b

Please sign in to comment.