1.1 --- a/micropython/inspect.py Tue Oct 08 22:59:10 2013 +0200
1.2 +++ b/micropython/inspect.py Tue Oct 08 23:59:47 2013 +0200
1.3 @@ -112,6 +112,7 @@
1.4
1.5 Module.__init__(self, name, importer)
1.6 self.visitor = self
1.7 + self.filename = None
1.8
1.9 # Import machinery links.
1.10
1.11 @@ -136,6 +137,7 @@
1.12
1.13 "Parse the file having the given 'filename'."
1.14
1.15 + self.filename = filename
1.16 self.astnode = module = compiler.parseFile(filename)
1.17
1.18 # Detect and record imports and globals declared in the module.