How to get current file name, function name and line number?
I want to use it for logging/debugging purpose, equivalent to __FILE__, __LINE__
__FILE__
__LINE__
I know it's been already a long time, but what I did is __filename.split('\\').pop(). This will get the full path with the filename, split it by \ then get the last index which will be your filename.
__filename.split('\\').pop()
\