<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>shigemk2</author_name>
  <author_url>https://blog.hatena.ne.jp/shigemk2/</author_url>
  <blog_title>by shigemk2</blog_title>
  <blog_url>https://www.shigemk2.com/</blog_url>
  <categories>
    <anon>Python</anon>
  </categories>
  <description>2.7.5でsubmodule.POpen import subprocess cmd = &quot;ruby --version&quot; subprocess.Popen( cmd, shell=True ) cmd = &quot;emacs --version&quot; subprocess.Popen( cmd, shell=True ) 期待される挙動 片方はrbenvで、もう片方は野良ビルドでビルドしたもので、環境変数は設定してあるから、上記のプログラムだとrbenvやら野良ビルドしたものやらのバージョンが表示されるはず。 実際の挙動 いずれも/usr/bin/の下のrubyとemacsのバージョンが表示される …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.shigemk2.com%2Fentry%2Fsubprocess_python_call&quot; title=&quot;コマンド名だけ指定してsubprocess.Popenでコマンド実行したときの挙動について - by shigemk2&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2015-07-13 15:00:00</published>
  <title>コマンド名だけ指定してsubprocess.Popenでコマンド実行したときの挙動について</title>
  <type>rich</type>
  <url>https://www.shigemk2.com/entry/subprocess_python_call</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
