How can I access the current executing module or class name in Python?

前端 未结 11 1853
醉酒成梦
醉酒成梦 2020-12-05 01:30

I would like to be able to dynamically retrieve the current executing module or class name from within an imported module. Here is some code:

foo.py:

11条回答
提交回复
热议问题