[英]Python on Windows - subprocess.check_output with full-path works not?
With args=['e:\\\\lynx\\\\lynx.exe','-dump',some_url]
, subprocess.check_output
works fine if the current-directory is e:\\lynx. 随着args=['e:\\\\lynx\\\\lynx.exe','-dump',some_url]
subprocess.check_output
如果当前目录为e正常工作:\\猞猁。
Elsewhere, it fails with a CalledProcessException and retcode of -1. 在其他地方,它以CalledProcessException和retcode -1失败。
For now, I do not wish to add e:\\lynx to PATH. 现在,我不希望将e:\\ lynx添加到PATH。
Any thoughts? 有什么想法吗?
Is there a problem in making the current directory e:\\\\lynx
from withing python? 使用python制作当前目录e:\\\\lynx
是否存在问题? That seems like a good solution to me. 对我来说,这似乎是一个很好的解决方案。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.