Obtains (a very abbreviated) context of the current call stack (from the top, excluding the code using this function)
Definition at line 29 of file DebuggingContext.py.
29def shortCallStack():
30 """
31 Obtains (a very abbreviated) context of the current call stack (from the top, excluding the code using this function)
32 """
33 import inspect
34 compact = ' >>> '
35 for frameInfo in inspect.stack()[2:][::-1]:
36 compact += "{}:{}({}) ".format(frameInfo.filename.split('/')[-1], frameInfo.frame.f_lineno, frameInfo.function)
37 return compact
38
39