def calledby(callerdepth=1):
    import inspect, os
    stack = inspect.stack()
    # we must step one extra level back in stack since we don't want
    # to include the call of this function itself.
    callerdepth = min(max(2, callerdepth + 1), len(stack)-1)
    frame = inspect.stack()[callerdepth]
    path = os.path.sep.join(frame[1].rsplit(os.path.sep, 2)[-2:])
    return "[called by '%s': %s:%s %s]" % (frame[3], path, frame[2], frame[4])
Update the config with the new dictionary.
dataset/ETHPy150Open evennia/evennia/evennia/utils/utils.py/calledby--crossover with--dataset/ETHPy150Open pinterest/kingpin/kingpin/manageddata/managed_datastructures.py/ManagedHashMap._update_config