I have an application where I'm trying to support plugins that the user can change at any time. The plugins are simply python modules. So I do this when I want to import one, to ensure that I have the latest version of the module loaded:
mdl = __import__(m) mdl = reload(mdl) (if there is a better way, please let me know! ;)) This seems to work fine when I just run the script with python. However, after I package w/ pyinstaller, the reload() doesn't behave like I thought it would. Basically, if I print mdl.__dict__ just after the __import__ call above, I get __co__ name __builtins__ evaluate __file__ equation __package__ latexequation initialize __name__ __doc__ Which is correct. But after the reload call, mdl.__dict__ is __name__ __file__ __doc__ __package__ Basically, all of my functions disappeared. When we call reload() in a frozen executable, are we getting the built-in version, or the version supplied by iu.py in pyinstaller? -- You received this message because you are subscribed to the Google Groups "PyInstaller" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/pyinstaller?hl=en.
