{"categories":["Python3"],"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftakeg.hatenadiary.jp%2Fentry%2F2019%2F06%2F14%2F210834\" title=\"pathlib\u306e\u30d5\u30a1\u30a4\u30eb\u64cd\u4f5c\u3044\u308d\u3044\u308d - \u30d9\u30b9\u30d1\u30ea\u30d6\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","provider_name":"Hatena Blog","title":"pathlib\u306e\u30d5\u30a1\u30a4\u30eb\u64cd\u4f5c\u3044\u308d\u3044\u308d","blog_title":"\u30d9\u30b9\u30d1\u30ea\u30d6","provider_url":"https://hatena.blog","author_url":"https://blog.hatena.ne.jp/takeg/","published":"2019-06-14 21:08:34","description":"pathlib\u3068\u306f Python 3.4\u4ee5\u4e0a\u3067\u63a8\u5968\u3055\u308c\u3066\u3044\u308b\u30d5\u30a1\u30a4\u30eb\u30fb\u30d1\u30b9\u64cd\u4f5c\u306e\u30e2\u30b8\u30e5\u30fc\u30eb\u3002 os.path \u306e\u4ee3\u66ff\u3068\u306a\u308b\u30e2\u30b8\u30e5\u30fc\u30eb\u3002 docs.python.org \u4f7f\u3044\u65b9\u3092\u3088\u304f\u5fd8\u308c\u308b\u306e\u3067\u5099\u5fd8\u9332\u3067\u3059\u3002 \u8fd4\u308a\u5024\u306fPath\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306a\u306e\u3067\u3001\u6587\u5b57\u5217\u306b\u5909\u63db\u3057\u305f\u304b\u3063\u305f\u3089str()\u3067\u56f2\u3093\u3067\u3084\u308a\u307e\u3059\u3002 \u30ab\u30ec\u30f3\u30c8\u30d5\u30a1\u30a4\u30eb\u306e\u7d76\u5bfe\u30d1\u30b9 from pathlib import Path this_file = Path(__file__).resolve() print(str(this_file)) # C:\\Users\\XXXX\\workspace\\project\\hoge.py \u89aa\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u53d6\u5f97 th\u2026","height":"190","width":"100%","blog_url":"https://takeg.hatenadiary.jp/","image_url":null,"version":"1.0","type":"rich","url":"https://takeg.hatenadiary.jp/entry/2019/06/14/210834","author_name":"takeg"}