blenderproc.python.utility.InstallUtility module

class blenderproc.python.utility.InstallUtility.InstallUtility[source]

Bases: object

static determine_blender_install_path(is_config, args, user_args)[source]

Determines the path of the blender installation

Parameters:
  • is_config (bool) – Whether a yaml config file was given instead of a python script.
  • args (List[str]) – The given command line arguments.
  • user_args (List[str]) – The arguments that will be forwarded to the users script.
Return type:

str

Returns:

  • The path to an already existing blender installation that should be used, otherwise None
  • The path to where blender should be installed.

static make_sure_blender_is_installed(custom_blender_path, blender_install_path, reinstall_blender=False)[source]

Make sure blender is installed.

Parameters:
  • custom_blender_path (str) – The path to an already existing blender installation that should be used, otherwise None.
  • blender_install_path (str) – The path to where blender should be installed.
  • reinstall_blender (bool) – If True, blender will be forced to reinstall.
Return type:

str

Returns:

  • The path to the blender binary.
  • The major version of the blender installation.