Closed GoogleCodeExporter closed 9 years ago
Resolved using the imp module:
imp.load_source("__main__", filename)
instead of:
execfile(filename)
Now the exceptions in the main module are reported with the correct line number
Original comment by reingart@gmail.com
on 14 Jan 2012 at 7:34
Original issue reported on code.google.com by
reingart@gmail.com
on 7 Oct 2011 at 6:36