1.1 --- a/inspector.py Mon Nov 28 16:23:38 2016 +0100
1.2 +++ b/inspector.py Mon Nov 28 17:04:43 2016 +0100
1.3 @@ -70,14 +70,14 @@
1.4
1.5 # Detect and record imports and globals declared in the module.
1.6
1.7 - self.assign_general_local("__name__", self.get_constant("string", self.name))
1.8 - self.assign_general_local("__file__", self.get_constant("string", filename))
1.9 self.process_structure(self.astnode)
1.10
1.11 # Set the class of the module after the definition has occurred.
1.12
1.13 ref = self.get_builtin("module")
1.14 self.set_name("__class__", ref)
1.15 + self.set_name("__mname__", self.get_constant("string", self.name).reference())
1.16 + self.set_name("__file__", self.get_constant("string", filename).reference())
1.17
1.18 # Get module-level attribute usage details.
1.19