install: pcf.c
- gcc -O3 -fPIC -shared -I/usr/include/python2.7/ pcf.c -lpython2.7 -o src/pcf.so
+ gcc -Ofast -fPIC -shared -I/usr/include/python2.7/ pcf.c -lpython2.7 -o src/pcf.so
clean:
rm -f src/pcf.so src/*.pyc
import pickle
try:
- import Image, ImageDraw
+ from PIL import Image, ImageDraw
except ImportError, msg:
print >> sys.stderr, msg
sys.exit(1)
-import im_debug
import linef
import manual
import intrsc
do_something = Imsave("saved/" + args.files[0][:-4] + "_" +
str(image.size[0]) + "/").save
else:
+ import im_debug
do_something = im_debug.show
if verbose:
from math import sin, cos, pi
try:
- import Image, ImageDraw
+ from PIL import Image, ImageDraw
except ImportError, msg:
print >> sys.stderr, msg
sys.exit(1)