How to get Blender executable's file path in a Python script?
__file__
gives me my addon's path, but I cannot be sure Blender is in the same folder tree, I guess.
Blender Stack Exchange is a question and answer site for people who use Blender to create 3D graphics, animations, or games. It only takes a minute to sign up.
Sign up to join this communityYou can get it using bpy.app.binary_path
Blender's API docs say:
bpy.app.binary_path
:
The location of blenders executable, useful for utilities that spawn new instances`