bim.pip_install - add dynamic description

This commit is contained in:
Andrej730
2025-07-01 17:27:58 +05:00
parent 94d2d32d18
commit b16fb7d917
@@ -824,6 +824,10 @@ class PipInstall(bpy.types.Operator):
bl_description = "Installs a package from PyPI"
name: bpy.props.StringProperty()
@classmethod
def description(cls, context, properties):
return f"Installs a package from PyPI: '{properties.name}'."
def execute(self, context):
blender_path = Path(bpy.app.binary_path).parent
target = next(