{"url":"https://t2y.hatenablog.jp/entry/20090607/1244371178","author_url":"https://blog.hatena.ne.jp/t2y-1979/","title":"which \u30b3\u30de\u30f3\u30c9\u306e\u5b9f\u88c5\u306e\u66f8\u304d\u76f4\u3057","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Ft2y.hatenablog.jp%2Fentry%2F20090607%2F1244371178\" title=\"which \u30b3\u30de\u30f3\u30c9\u306e\u5b9f\u88c5\u306e\u66f8\u304d\u76f4\u3057 - forest book\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","provider_url":"https://hatena.blog","provider_name":"Hatena Blog","blog_url":"https://t2y.hatenablog.jp/","height":"190","type":"rich","width":"100%","published":"2009-06-07 19:39:38","version":"1.0","categories":["python","refactoring"],"blog_title":"forest book","image_url":null,"author_name":"t2y-1979","description":"\u4f1a\u793e\u306e\u5148\u8f29\u304c python \u3092\u52c9\u5f37\u3057\u59cb\u3081\u307e\u3057\u305f\u3002\u305d\u308c\u306a\u3089\u3063\uff01\u3068\u7c21\u5358\u306a\u30b5\u30f3\u30d7\u30eb\u3092\u63d0\u793a\u3059\u308b\u3053\u3068\u306b\u3057\u307e\u3057\u305f\u3002\u4ee5\u524d\u3001which \u30b3\u30de\u30f3\u30c9\u3092 python \u3067\u66f8\u3044\u305f\u3053\u3068\u3092\u601d\u3044\u51fa\u3057\u3066\u63a2\u3057\u3066\u307f\u307e\u3057\u305f\u3002\u3061\u3087\u3046\u3069 python \u3092\u52c9\u5f37\u3057\u59cb\u3081\u305f\u3068\u304d\u3067\u3001\u7d041\u5e742\u30f6\u6708\u524d\u306b\u66f8\u3044\u305f\u30b3\u30fc\u30c9\u304c\u4ee5\u4e0b\u306b\u306a\u308a\u307e\u3059\u3002 #!/usr/bin/env python import os import sys import glob cmd_name = sys.argv[1] path_list = [ item for item in os.environ['PATH'].split(':') ] path_to_file = [ gl\u2026"}