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.


1 Answer 1


You can get it using bpy.app.binary_path

Blender's API docs say:

The location of blenders executable, useful for utilities that spawn new instances`

  • $\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 .