How to get a path for a module imported by importlib, where a class was defined

后端 未结 0 1831
轮回少年
轮回少年 2020-12-12 00:54

There is a nice way to get a path for a module where a class was defined, just do

inspect.getfile(obj.__class__)

Unfortunately, it seems to b

相关标签:
回答
  • 消灭零回复
提交回复
热议问题