pkg_resource.resource_filename
resource_filename(package_or_requirement, resource_name)
Sometimes, it is not sufficient to access a resource in string or stream form, and a true filesystem filename is needed.
「リソースに文字列やストリームの形式でアクセスするのは、時々効率的ではないが、
If the resource is in an archive distribution (such as a zipped egg),
ファイルシステムの正しいファイル名が必要となる」
In such cases, you can use this method (or module-level function) to obtain a filename for a resource.
「そのような場合、リソースのファイル名を手に入れるのにこのメソッド(またはモジュールレベル関数)を使える」