4
$\begingroup$

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.

$\endgroup$

1 Answer 1

8
$\begingroup$

You 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`

$\endgroup$
1
  • $\begingroup$ ahhh, i tried googling exactly for that but didn't find it! thx! $\endgroup$
    – Val
    Oct 24, 2014 at 6:37

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .