How do I get the module instance for a class in Python?

后端 未结 3 2061
温柔的废话
温柔的废话 2021-01-17 12:54

I am learning Python, and as always, I\'m being ambitious with my starter projects. I am working on a plugin system for a community site toolkit for App Engine. My plugin

3条回答
  •  渐次进展
    2021-01-17 13:40

    Alternatively, you can use the module's global __file__ variable if all you want is the module's path.

提交回复
热议问题