Jython 命令终止批处理脚本
Jython command terminating batch scripts
在一个目录中我有三个文件。
- test.py,含
print "Hello World"
- python_runner.bat,含
python test.py
PAUSE
- jython_runner.bat,含
jython test.py
PAUSE
python_runner.bat 按预期工作,但 运行 Jython_runner.bat 导致跳过 PAUSE 命令!
为什么 Jython 会导致批处理脚本提前终止?
(注意:我使用的是 Jython2.7b4,我还没有尝试过 Jython 2.5)
如果 jython 命令是一个批处理脚本,那么暂停和之后的任何事情都不会被执行。
尝试call
call jython test.py
结果如何?
在一个目录中我有三个文件。
- test.py,含
print "Hello World"
- python_runner.bat,含
python test.py PAUSE
- jython_runner.bat,含
jython test.py PAUSE
python_runner.bat 按预期工作,但 运行 Jython_runner.bat 导致跳过 PAUSE 命令!
为什么 Jython 会导致批处理脚本提前终止?
(注意:我使用的是 Jython2.7b4,我还没有尝试过 Jython 2.5)
如果 jython 命令是一个批处理脚本,那么暂停和之后的任何事情都不会被执行。
尝试call
call jython test.py
结果如何?