Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 471516
Collapse All | Expand All

(-)a/nml/actions/real_sprite.py (-1 / +2 lines)
Lines 16-22 with NML; if not, write to the Free Software Foundation, Inc., Link Here
16
from nml import generic, expression
16
from nml import generic, expression
17
from nml.actions import base_action
17
from nml.actions import base_action
18
from nml.ast import assignment
18
from nml.ast import assignment
19
import os, Image
19
import os
20
from PIL import Image
20
21
21
palmap_d2w = [
22
palmap_d2w = [
22
          0, 215, 216, 136,  88, 106,  32,  33, #   0..7
23
          0, 215, 216, 136,  88, 106,  32,  33, #   0..7
(-)a/nml/ast/alt_sprites.py (-1 / +2 lines)
Lines 16-22 with NML; if not, write to the Free Software Foundation, Inc., Link Here
16
from nml import expression, generic, global_constants
16
from nml import expression, generic, global_constants
17
from nml.actions import real_sprite
17
from nml.actions import real_sprite
18
from nml.ast import base_statement
18
from nml.ast import base_statement
19
import os, Image
19
import os
20
from PIL import Image
20
21
21
"""
22
"""
22
List with all AltSpritesBlocks encountered in the nml file.
23
List with all AltSpritesBlocks encountered in the nml file.
(-)a/nml/main.py (-1 / +1 lines)
Lines 19-25 from nml.actions import action2layout, action2var, action8, sprite_count, real_s Link Here
19
from nml.ast import general, grf, alt_sprites
19
from nml.ast import general, grf, alt_sprites
20
20
21
try:
21
try:
22
    import Image
22
    from PIL import Image
23
except ImportError:
23
except ImportError:
24
    pass
24
    pass
25
25
(-)a/nml/output_grf.py (-1 / +1 lines)
Lines 18-24 from nml import generic, palette, output_base, lz77, grfstrings Link Here
18
from nml.actions.real_sprite import palmap_w2d
18
from nml.actions.real_sprite import palmap_w2d
19
19
20
try:
20
try:
21
    import Image
21
    from PIL import Image
22
except ImportError:
22
except ImportError:
23
    pass
23
    pass
24
24
(-)a/nml/version_info.py (-1 / +1 lines)
Lines 45-51 def get_lib_versions(): Link Here
45
    versions = {}
45
    versions = {}
46
    #PIL
46
    #PIL
47
    try:
47
    try:
48
        import Image
48
        from PIL import Image
49
        versions["PIL"] = Image.VERSION
49
        versions["PIL"] = Image.VERSION
50
    except ImportError:
50
    except ImportError:
51
        versions["PIL"] = "Not found!"
51
        versions["PIL"] = "Not found!"

Return to bug 471516