def _menu_restart_pext(self) -> None:
# Call _shut_down manually because it isn't called when using os.execv
_shut_down(self,
self.config_retriever)
args = sys.argv[:]
args.insert(0, sys.executable)
if sys.platform == 'win32':
args = ['"%s"' % arg for arg in args]
os.chdir(os.getcwd())
os.execv(sys.executable, args)
评论列表
文章目录