def filename(self, filename=None):
if filename is None:<EOL><INDENT>if self.debugger.mainpyfile:<EOL><INDENT>filename = self.debugger.mainpyfile<EOL><DEDENT>else:<EOL><INDENT>return None<EOL><DEDENT><DEDENT>if self.debugger.settings['<STR_LIT>']:<EOL><INDENT>return(os.path.basename(filename))<EOL><DEDENT>return filename<EOL>
Return filename or the basename of that depending on the
        basename setting