den-run-ai / ctypesgen

Automatically exported from code.google.com/p/ctypesgen
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Fix undefined global/name in ctypesgencore/printer_python/printer.py #44

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Some generated files will fail to build because it hits the print_module method 
in ctypesgencore/printer_python/printer.py which looks like this:

    def print_module(self,module): 
        print >>self.file, 'from %s import *' % name

"name" isn't defined. I have attached a fix.

Original issue reported on code.google.com by kanzure on 11 Sep 2013 at 2:02

Attachments: