def getSummarizedFileName(fileName):
 if (os.getcwd() == os.path.dirname(fileName)):
  return os.path.basename(fileName)
 return fileName

def getSummarizedFileName ( fileName ) : if ( os . getcwd ( ) == os . path . dirname ( fileName ) ) : return os . path . basename ( fileName ) return fileName
get the filename basename if the file is in the current working directory .