How to easy_install egg plugin and load it without restarting application?

前端 未结 1 1458
囚心锁ツ
囚心锁ツ 2020-12-29 16:38

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 no

相关标签:
1条回答
  • 2020-12-29 17:08

    After some browsing of the documentation I think what you need to do is

    pkg_resources.get_distribution(name).activate()
    

    where name is the name of the package you just installed.

    0 讨论(0)
提交回复
热议问题