• Jérome Perrin's avatar
    default: interact with linecache for complete traceback · 7b6a3085
    Jérome Perrin authored
    When using init or install option of slapos.recipe.build to
    write python code, the traceback were hard to understand, because
    the current line was not included in the traceback.
    
    This put the script in linecache before compiling it, so that in
    case of error the problematic line appears in traceback.
    
    There is still the "problem" that the traceback line numbers starts
    from the beginning of the script and not the actual line from
    buildout profile, but this does not seem feasible to adjust the line
    numbers, so let's ignore this.
    7b6a3085
README.rst 22.5 KB