Paraview 未将控制权释放回 Shell

Paraview not releasing control back to Shell

我有一个 GUI,其中包含几个用于启动 paraview 并在其中显示特定结果的按钮。每个按钮按下都会调用 shell 中的一个 bat 文件,其中包含对 python 脚本文件的调用,该脚本文件本身包含要绘制的数据。这是 .bat 文件的样子:

paraview --script="C:\Users****\Desktop\MyPythonScript.py"

我的问题是,一旦我 运行 shell 中的 bat 文件,paraview 启动并且在完成打开结果后不会将控制权交还给 shell。这可以防止用户点击其他 GUI 的按钮来打开另一个结果。他需要关闭 return 对 shell 的控制并按下另一个按钮以查看其他结果。

这非常局限,没有找到任何主题。尝试使用 pvpython 代替,但是当给出与上面相同的 python 脚本时没有启动任何东西。

如果 python 脚本需要详细信息,请告诉我,但我想不需要,因为这是一个更一般的问题。

在此先感谢您的支持。 问候, 马克

start/B 选项

Start application without creating a new window. The application has ^C handling ignored. Unless the application enables ^C processing, ^Break is the only way to interrupt the application

start /B paraview ....
start /B paraview ....

来自 https://superuser.com/posts/345605/edit