Issue 794826: file attribute missing from dynamicly loaded module (original) (raw)
This a patch that corresponds to Bug report [ 698282 ] file attribute missing from dynamicly loaded module, submitted by dsweeton.
As he reports, if a single application embeds multiple interpreters, only the one with the first instance of a dynamically loaded module gets the file attribute. It is missing from all later instances.
I have attached a cdiff patch, based on his comments.