The .py file and module name of this file (__file__)
()
| 27 | return filename |
| 28 | |
| 29 | def my_file_and_modname(): |
| 30 | """The .py file and module name of this file (__file__)""" |
| 31 | modname = os.path.splitext(os.path.basename(__file__))[0] |
| 32 | return fix_ext_py(__file__), modname |
| 33 | |
| 34 | def get_firstlineno(func): |
| 35 | return func.__code__.co_firstlineno |