擅长:python、mysql、java
<p>文件<code>cefclient.app</code>实际上是一个目录(特别是<a href="http://en.wikipedia.org/wiki/Application_bundle" rel="noreferrer">application bundle</a>),而不是应用程序可执行文件。真正的可执行文件位于包内,路径类似于<code>Contents/MacOS/executable_name</code>。因此,要启动它,您需要执行以下操作:</p>
<pre><code>subprocess.Popen([os.getcwd()+"/cef/cefclient.app/Content/MacOS/executable_name",
"--url=http://127.0.0.1:8100"])
</code></pre>