Commits

Takeshi Komiya committed a39c2fe

* Fix loading blockdiag.utils.ellipse on demand

  • Participants
  • Parent commits 36b3e45
  • Tags 0.8.2

Comments (0)

Files changed (1)

File src/blockdiag/imagedraw/svg.py

 import re
 import sys
 import base64
-from blockdiag import utils
 from blockdiag.utils.XY import XY
 from blockdiag.utils import urlutil
 from SVGdraw import *
         if start > end:
             end += 360
 
-        coord = utils.ellipse.coordinate(1, w, h, start, start + 1)
+        from blockdiag.utils import ellipse
+
+        coord = ellipse.coordinate(1, w, h, start, start + 1)
         point = iter(coord).next()
         pt1 = XY(xy[0] + w + round(point[0], 0),
                  xy[1] + h + round(point[1], 0))
 
-        coord = utils.ellipse.coordinate(1, w, h, end, end + 1)
+        coord = ellipse.coordinate(1, w, h, end, end + 1)
         point = iter(coord).next()
         pt2 = XY(xy[0] + w + round(point[0], 0),
                  xy[1] + h + round(point[1], 0))