mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-24 19:09:58 +00:00
bim.pip_install - add dynamic description
This commit is contained in:
@@ -824,6 +824,10 @@ class PipInstall(bpy.types.Operator):
|
|||||||
bl_description = "Installs a package from PyPI"
|
bl_description = "Installs a package from PyPI"
|
||||||
name: bpy.props.StringProperty()
|
name: bpy.props.StringProperty()
|
||||||
|
|
||||||
|
@classmethod
|
||||||
|
def description(cls, context, properties):
|
||||||
|
return f"Installs a package from PyPI: '{properties.name}'."
|
||||||
|
|
||||||
def execute(self, context):
|
def execute(self, context):
|
||||||
blender_path = Path(bpy.app.binary_path).parent
|
blender_path = Path(bpy.app.binary_path).parent
|
||||||
target = next(
|
target = next(
|
||||||
|
|||||||
Reference in New Issue
Block a user