Commit a06678d3 authored by James Smith's avatar James Smith
Browse files

If Windows use a different FONT_PATH

Fixes #42 so that the user does not have to manually edit FONT_PATH if they are on a Windows machine
parent 642b4b5c
......@@ -12,6 +12,7 @@ import re
import sys
import numpy as np
from operator import itemgetter
from platform import system
from PIL import Image
from PIL import ImageDraw
......@@ -20,7 +21,10 @@ from .query_integral_image import query_integral_image
item1 = itemgetter(1)
FONT_PATH = os.environ.get("FONT_PATH", "/usr/share/fonts/truetype/droid/DroidSansMono.ttf")
if system() == "Windows":
FONT_PATH = r"C:\Windows\Fonts\consola.ttf"
FONT_PATH = os.environ.get("FONT_PATH", "/usr/share/fonts/truetype/droid/DroidSansMono.ttf")
STOPWORDS = set([x.strip() for x in open(os.path.join(os.path.dirname(__file__),
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment