1from ..constants import debug 2 3 4 5def debuging(func): 6 def wrapper(*args, **kwargs): 7 if debug: 8 print(f"Running {func.__name__}") 9 # The idea is to soon be able to print internals of the function and allow for tracebacks. 10 return func(*args, **kwargs) 11 12 return wrapper 13 14 15 16