How to easy_install egg plugin and load it without restarting application?
问题 I'm creating an app that downloads and installs its own egg plugins, but I have a problem loading the egg after easy_install extracts it into place. This is how it works now: App downloads egg into temp folder Installs egg with setuptools.command.easy_install.main() into ~/.app/plugins folder (which is pointed by a pth on dist-packages) At this point, the ~/.apps/plugins/easy-install.pth is updated with the new egg path The problem is that the pth is not reloaded until the python process is