def quit(self):
# Return immediately of already dead
if not hasattr(self, '_process') or not self._process.isalive():
self._log.debug('Vivado has already been stopped')
# try:
# # I am being pedantic here, in case, for any reason, it wasn't done yet
# self.__instances.remove(self)
# except KeyError:
# pass
return
self._log.debug('Shutting Vivado down')
try:
self.execute('quit')
except pexpect.ExceptionPexpect as e:
pass
# Just in case
self._process.terminate(True)
# Remove self from the list of instances
self.__instances.remove(self)
# --------------------------------------------------------------
# --------------------------------------------------------------
评论列表
文章目录