(frame = None, withLineNumber = False)
| 77 | return frame.f_globals.get("__name__", frame.f_globals.get("__file__", "N/A")) |
| 78 | |
| 79 | def __getCallContext(frame = None, withLineNumber = False): |
| 80 | if frame is None: |
| 81 | f = inspect.currentframe().f_back.f_back |
| 82 | else: |
| 83 | f = frame |
| 84 | callStr = __getCallStr(f) |
| 85 | if withLineNumber: |
| 86 | callStr += " #" + str(f.f_lineno) |
| 87 | return callStr |
| 88 | |
| 89 | ## Help function to track dificult errors. |
| 90 | # It prints the callstack giving the module name and the line number. |
no test coverage detected