{"version":"1.0","author_name":"auewe","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fauewe.hatenablog.com%2Fentry%2F2013%2F10%2F16%2F095026\" title=\"\u30b7\u30a7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8\u304b\u3089Python3\u306b\u79fb\u884c\u3059\u308b\u4eba\u306e\u305f\u3081\u306b \uff5e\u6a19\u6e96\u5165\u51fa\u529b\u30fb\u30d5\u30a1\u30a4\u30eb\u7ba1\u7406\u7de8\uff5e - \u4f59\u767d\u306e\u66f8\u304d\u306a\u3050\u308a\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","description":"\u74b0\u5883\u5909\u6570\u306e\u53d6\u5f97 # Python import os home = os.environ.get('HOME', \"\") \u30ab\u30ec\u30f3\u30c8\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u30d1\u30b9\u3092\u53d6\u5f97 # Bash ... \u3082\u3068\u3082\u3068 $PWD\u306b\u5165\u3063\u3066\u3044\u308b\u304c current_path=`pwd` # Python import os current_path = os.getcwd() # \u30b9\u30af\u30ea\u30d7\u30c8\u306e\u3042\u308b\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u7d76\u5bfe\u30d1\u30b9\u306f script_path = os.path.abspath(os.path.dirname(__file__)) \u30d5\u30a1\u30a4\u30eb\u540d\u3068\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u540d\u306e\u7d50\u5408 \u30b7\u30a7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8\u3067\u306f\u30d5\u30a1\u30a4\u30eb\u3084\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u6587\u5b57\u5217\u3068\u3057\u3066\u6271\u3044\u3001 \u2026","author_url":"https://blog.hatena.ne.jp/auewe/","blog_url":"https://auewe.hatenablog.com/","width":"100%","type":"rich","url":"https://auewe.hatenablog.com/entry/2013/10/16/095026","image_url":null,"blog_title":"\u4f59\u767d\u306e\u66f8\u304d\u306a\u3050\u308a","title":"\u30b7\u30a7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8\u304b\u3089Python3\u306b\u79fb\u884c\u3059\u308b\u4eba\u306e\u305f\u3081\u306b \uff5e\u6a19\u6e96\u5165\u51fa\u529b\u30fb\u30d5\u30a1\u30a4\u30eb\u7ba1\u7406\u7de8\uff5e","height":"190","published":"2013-10-16 09:50:26","provider_url":"https://hatena.blog","provider_name":"Hatena Blog","categories":["Python","\u30b7\u30a7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8"]}