method: path.extpy.getfilelineno

*Not documented*
    def getfilelineno(self, scrapinit=0):

origin: path.extpy

where:

function source:

def getfilelineno(self, scrapinit=0):
    x = obj = self.resolve()
    if inspect.ismodule(obj):
        return obj.__file__, 0
    if inspect.ismethod(obj):
        obj = obj.im_func
    if inspect.isfunction(obj):
        obj = obj.func_code
    if inspect.iscode(obj):
        return py.path.local(obj.co_filename), obj.co_firstlineno - 1
    else:
        source, lineno = inspect.findsource(obj)
        return x.getfile(), lineno - 1