Skip to content

PrefixPlaceholder#

Description off a placeholder text found in a file that must be replaced when installing the file into the prefix.

file_mode: FileMode property #

The type of the file, either binary or text.

Examples#

>>> paths_json = PathsJson.from_path(
...     "../test-data/conda-22.9.0-py38haa244fe_2-paths.json"
... )
>>> entry = paths_json.paths[-1]
>>> entry.prefix_placeholder.file_mode
FileMode()
>>>

placeholder: str property #

The placeholder prefix used in the file. This is the path of the prefix when the package was build.

Examples#

>>> paths_json = PathsJson.from_path(
...     "../test-data/conda-22.9.0-py38haa244fe_2-paths.json"
... )
>>> entry = paths_json.paths[-1]
>>> entry.prefix_placeholder.placeholder
'D:\\bld\\conda_1667595064120\\_h_env'
>>>

__repr__() #

Returns a representation of the PrefixPlaceholder.