- たとえば、2つ上の階層にあるディレクトリにあるMakefileを実行したいとき
1 2 |
<span class="n">os</span><span class="o">.</span><span class="n">Chdir</span><span class="p">(</span><span class="s">"./../../"</span><span class="p">)</span> <span class="n">cmd</span> <span class="o">:=</span> <span class="n">exec</span><span class="o">.</span><span class="n">Command</span><span class="p">(</span><span class="s">"make"</span><span class="p">,</span> <span class="s">"ENV_FILE=.env"</span><span class="p">,</span> <span class="s">"DOMAIN_NAME=vamdemic"</span><span class="p">)</span> |