'Get the path of the current Python source file, as a string'

def filename(self):

    if self.is_optimized_out():
        return '(frame    information    optimized    out)'
    return self.co_filename.proxyval(set())
