@requires_segment_info
def current_file(pl, segment_info, basename=True):
 filename = segment_info[u'curframe'].f_code.co_filename
 if basename:
  filename = os.path.basename(filename)
 return filename

@ requires_segment_info def current_file ( pl , segment_info , basename = True ) : filename = segment_info [ u'curframe' ] . f_code . co_filename if basename : filename = os . path . basename ( filename ) return filename
displays current file name .