Browse Source

wrong import

dmuratshin 10 years ago
parent
commit
5b3ede74cf
1 changed files with 5 additions and 2 deletions
  1. 5 2
      tools/resbuild/atlas.py

+ 5 - 2
tools/resbuild/atlas.py

@@ -2,8 +2,6 @@
 
 
 from __future__ import unicode_literals, print_function
 from __future__ import unicode_literals, print_function
 
 
-import Image
-import ImageDraw
 
 
 # SCALE = 50
 # SCALE = 50
 # OFFSET = 5
 # OFFSET = 5
@@ -146,6 +144,11 @@ class Atlas(object):
         return res
         return res
 
 
     def save(self):
     def save(self):
+
+        import Image
+        import ImageDraw
+
+
         im = Image.new("RGBA", (self.w * SCALE, self.h * SCALE))
         im = Image.new("RGBA", (self.w * SCALE, self.h * SCALE))
 
 
         draw = ImageDraw.Draw(im)
         draw = ImageDraw.Draw(im)