428ae99
--- asymptote-2.21/GUI/xasy2asy.py	
428ae99
+++ asymptote-2.21/GUI/xasy2asy.py	
428ae99
@@ -18,8 +18,8 @@ from tempfile import mkdtemp
428ae99
 
428ae99
 # PIL support is now mandatory due to rotations
428ae99
 try:
428ae99
-  import ImageTk
428ae99
-  import Image
428ae99
+  from PIL import ImageTk
428ae99
+  from PIL import Image
428ae99
 except:
428ae99
    pass
428ae99
 
428ae99
--- asymptote-2.21/GUI/xasyMainWin.py	
428ae99
+++ asymptote-2.21/GUI/xasyMainWin.py	
428ae99
@@ -40,8 +40,8 @@ from xasyActions import *
428ae99
 import string
428ae99
 
428ae99
 try:
428ae99
-  import ImageTk
428ae99
-  import Image
428ae99
+  from PIL import ImageTk
428ae99
+  from PIL import Image
428ae99
   PILAvailable = True
428ae99
 except:
428ae99
   PILAvailable = False
428ae99