Blob Blame Raw
diff -r 7c249349d2a9 -r ab7e104b7811 nml/actions/real_sprite.py
--- a/nml/actions/real_sprite.py
+++ b/nml/actions/real_sprite.py
@@ -16,7 +16,8 @@
 from nml import generic, expression
 from nml.actions import base_action
 from nml.ast import assignment
-import os, Image
+import os
+from PIL import Image
 
 palmap_d2w = [
           0, 215, 216, 136,  88, 106,  32,  33, #   0..7
diff -r 7c249349d2a9 -r ab7e104b7811 nml/ast/alt_sprites.py
--- a/nml/ast/alt_sprites.py
+++ b/nml/ast/alt_sprites.py
@@ -16,7 +16,8 @@
 from nml import expression, generic, global_constants
 from nml.actions import real_sprite
 from nml.ast import base_statement
-import os, Image
+import os
+from PIL import Image
 
 """
 List with all AltSpritesBlocks encountered in the nml file.
diff -r 7c249349d2a9 -r ab7e104b7811 nml/main.py
--- a/nml/main.py
+++ b/nml/main.py
@@ -19,7 +19,7 @@
 from nml.ast import general, grf, alt_sprites
 
 try:
-    import Image
+    from PIL import Image
 except ImportError:
     pass
 
diff -r 7c249349d2a9 -r ab7e104b7811 nml/output_grf.py
--- a/nml/output_grf.py
+++ b/nml/output_grf.py
@@ -18,7 +18,7 @@
 from nml.actions.real_sprite import palmap_w2d
 
 try:
-    import Image
+    from PIL import Image
 except ImportError:
     pass
 
diff -r 7c249349d2a9 -r ab7e104b7811 nml/version_info.py
--- a/nml/version_info.py
+++ b/nml/version_info.py
@@ -47,7 +47,7 @@
     versions = {}
     #PIL
     try:
-        import Image
+        from PIL import Image
         versions["PIL"] = Image.VERSION
     except ImportError:
         versions["PIL"] = "Not found!"