<div dir="ltr">Hello,<br><br>I've been using olpcgames for some physics + puzzle games I'm writing. I just started using the SVGSprite class but I kept on getting an error when using it. I realized that in the SVGSprite class a module named 'svg' is imported, AND a local variable is named svg. So when you call svg.render() it tries it on the local variable (which is a string) and then that causess a crash. <br>
The fix is easy, change the line at the top of svgsprite.py from:<br><span style="font-family: courier new,monospace;">from olpcgames import svg</span><br>to:<br><span style="font-family: courier new,monospace;">from olpcgames import svg as svgModule</span><br>
and then later in the code there is one reference to svg that needs to be changed to svgModule.<br>Basically just a python scope issue, but I don't know who maintains olpcgames so I decided to just send this to devel.<br>
<br>Thanks,<br>Alex Levenson<br></div>