실행 중인 메서드이름, 파일 이름 현재 실행 중인 파일 이름 import inspect file_name = inspect.getfile(inspect.currentframe()) 현재 실행 중인 메서드 이름 import sys method_name = sys._getframe(0).f_code.co_name Python/Python__works 2020.09.24