use python3-venv
This commit is contained in:
parent
90537f2f0e
commit
8e4ba42fc1
13 changed files with 119 additions and 118 deletions
|
|
@ -1,18 +1,9 @@
|
|||
#!/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')
|
||||
if os.path.exists(activate_this):
|
||||
with open(activate_this) as f:
|
||||
code = compile(f.read(), activate_this, 'exec')
|
||||
exec(code, dict(__file__=activate_this))
|
||||
|
||||
from PIL import Image
|
||||
from PIL import ImageDraw
|
||||
import json
|
||||
|
|
@ -21,6 +12,7 @@ import ox
|
|||
from ox.image import getRGB, drawText, wrapText
|
||||
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 render_poster(data, poster):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue