PIL fixes

This commit is contained in:
j 2017-12-14 17:13:48 +00:00
parent 8768128629
commit 9b83231721

View file

@ -1,18 +1,12 @@
#!/usr/bin/python3
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# vi:si:et:sw=4:sts=4:ts=4
from __future__ import division
import os
root_dir = os.path.normpath(os.path.abspath(os.path.join(os.path.dirname(__file__), '..')))
# using virtualenv's activate_this.py to reorder sys.path
#activate_this = os.path.join(root_dir, 'bin', 'activate_this.py')
#execfile(activate_this, dict(__file__=activate_this))
import hashlib
import Image
import ImageDraw
from PIL import Image
from PIL import ImageDraw
import json
from optparse import OptionParser
import ox
@ -20,6 +14,7 @@ from ox.image import drawText, getRGB, getTextSize, wrapText
import subprocess
import sys
root_dir = os.path.normpath(os.path.abspath(os.path.join(os.path.dirname(__file__), '..')))
static_root = os.path.join(os.path.dirname(__file__), 'data')
def get_frame(id, height, position):