How to get current python module name?
What is the best way to get python module name with given PsiFile/PyFile or PyClass/PyFunction ?

I want something like "py_pack.sub_pack.file_in_sub" for given file_in_sub.py file.
Is there a better way than just take subpath of the file and replace delimiters with dots?
1 条评论
排序方式
日期
投票数
请先登录再写评论。