它显示“成功执行批处理命令”,但命令行上没有输出任何内容。我是不是遗漏了什么?我使用的是Windows。
gimp-console-2.10.exe -idf --batch-interpreter python-fu-eval -b "import test; test.main(\"print this out\")"
文件名为test.py
#!/usr/bin/env python
from gimpfu import *
def main(mystring):
print(mystring)发布于 2021-10-28 08:54:24
您不能在Windows上打印到控制台-它会被缓冲,然后在缓冲区已满时挂起。
点击这里查看替代方案:https://www.gimp-forum.net/Thread-Debugging-python-fu-scripts-in-Windows
https://stackoverflow.com/questions/69746684
复制相似问题