fix imports to work with pillow
[imago.git] / src / manual.py
index 4030104..fb7f832 100644 (file)
@@ -1,7 +1,6 @@
 """Manual grid selection module"""
 
-import pygame
-import ImageDraw
+from PIL import ImageDraw
 from math import sqrt, acos, copysign
 
 from geometry import l2ad, line, intersection
@@ -24,6 +23,7 @@ class Screen:
 
 def find_lines(im_orig):
     # TODO rename, refactor, comment
+    import pygame
 
     im = im_orig.copy()