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 comment
Sort by
Date
Votes
Please sign in to leave a comment.