def cleanup ( self ) : for file in glob . glob ( self . basename + '*' ) : os . unlink ( file )
delete all files except one in python
Clean up any temporary files .
def cleanup(self):
        """Clean up any temporary files."""
        for file in glob.glob(self.basename + '*'):
            os.unlink(file)