Passing `__name__` is **ugly**, because it is a dunder variable, but also because it may lead to errors (wrong order of parameters)
Using inspect to get the outer frame is something that most people are afraid of.
How would you do it?
#python
Using inspect to get the outer frame is something that most people are afraid of.
How would you do it?
#python
Comments
Like, no judgment, sometimes there are valid reasons to find oneself in such situation. But it's a bad situation.
`module/file.py`
```
function("module.file", *args)
```
The function requires the caller module path.