docs icon indicating copy to clipboard operation
docs copied to clipboard

The self.package_path is not documented

Open uilianries opened this issue 3 years ago • 1 comments

We have a PR provided by @jellespijker which uses self.package_path which is implemented here: https://github.com/conan-io/conan/blob/200a7a13b05ba2872d95e0517265e60f1bb566f7/conans/model/conanfile_interface.py.

This is a good feature for who wants to use modern Pathlib, but it's not documented, which is considered as private.

uilianries avatar Sep 16 '22 13:09 uilianries

I often use all the _path synonyms instead of the folder. Since it makes for shorter calls and gives access to glob() and exists() saving me an import os. I also think it makes things more readable.

I appreciated the PR :thumbsup:

jellespijker avatar Sep 16 '22 16:09 jellespijker

We're deprecating these accesors, users are free to call Path(self.xxx_folder) on the recipes https://github.com/conan-io/conan/pull/16247

AbrilRBS avatar May 14 '24 13:05 AbrilRBS