Python: check version binary name first

Check version name first since 'python' binary may be a different version.
This commit is contained in:
Campbell Barton 2015-10-30 22:06:06 +11:00
parent 43bf78c946
commit 0a5fdb6354

@ -600,7 +600,7 @@ bool BKE_appdir_program_python_search(
const char *basename = "python";
char python_ver[16];
/* check both possible names */
const char *python_names[] = {basename, python_ver};
const char *python_names[] = {python_ver, basename};
int i;
bool is_found = false;