<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>fgshun</author_name>
  <author_url>https://blog.hatena.ne.jp/fgshun/</author_url>
  <blog_title>銀月の符号</blog_title>
  <blog_url>https://fgshun.hatenablog.com/</blog_url>
  <categories>
    <anon>python</anon>
  </categories>
  <description>os.name == 'nt' つまり Windows の cmd.exe で Python スクリプトに引数を与えたときの話。 UNIX シェルと違って何もしてくれない（いいすぎ）のにちょっとした怒りを覚えてみたり。普段は気にならないのに今日はなにか変だ。 *.py ぐらい融通利かせてほしいし、~ でホームディレクトリっぽいもの指し示してみたいし、環境変数に %% じゃなくて $ でアクセスしたい。勢いでキーボードをたたいてみた。 import os import sys import re import glob def nt_glob(args): args_new = [] wildc…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ffgshun.hatenablog.com%2Fentry%2F20080304%2F1204652012&quot; title=&quot;Python スクリプトの引数、 Windows にて - 銀月の符号&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>2008-03-04 02:33:32</published>
  <title>Python スクリプトの引数、 Windows にて</title>
  <type>rich</type>
  <url>https://fgshun.hatenablog.com/entry/20080304/1204652012</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
