<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>methane</author_name>
  <author_url>https://blog.hatena.ne.jp/methane/</author_url>
  <blog_title>methaneのブログ</blog_title>
  <blog_url>https://methane.hatenablog.jp/</blog_url>
  <categories>
    <anon>Python</anon>
  </categories>
  <description>意外に知られてない、というか、チュートリアルに載ってない？Pythonでいろいろスクリプトを作ると、それをどっかのディレクトリに全部放り込んでおいて、好きなときに使いたい。で、普通はローカルのツールを置きまくったディレクトリにPATHを通して、 &gt;hello.pyの用に実行するんだけど・・・、Windowsのコマンドプロンプトでは、この方法ではリダイレクトが使えなくなるという問題がある。で、環境変数PYTHONPATHの出番。 PYTHONPATHは、モジュールの検索パス。モジュールを探す順番が、ローカルディレクトリ→PYTHONPATH→PYTHONの標準ディレクトリになってる。これを、自分…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmethane.hatenablog.jp%2Fentry%2F20061022%2F1161492211&quot; title=&quot;環境変数PYTHONPATH - methaneのブログ&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>2006-10-22 13:43:31</published>
  <title>環境変数PYTHONPATH</title>
  <type>rich</type>
  <url>https://methane.hatenablog.jp/entry/20061022/1161492211</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
