Commit: 7d3042f95f7401e00f0c53b63ebade729c0941de
Author: Ines Almeida
Date:   Mon Jan 12 15:59:02 2015 +0100
Branches: soc-2014-bge
https://developer.blender.org/rB7d3042f95f7401e00f0c53b63ebade729c0941de

BGE: python API cleanup - replace BLI_program_path with BKE_appdir_program_path

===================================================================

M       source/gameengine/Ketsji/KX_PythonInit.cpp

===================================================================

diff --git a/source/gameengine/Ketsji/KX_PythonInit.cpp 
b/source/gameengine/Ketsji/KX_PythonInit.cpp
index e6de9a3..109e76c 100644
--- a/source/gameengine/Ketsji/KX_PythonInit.cpp
+++ b/source/gameengine/Ketsji/KX_PythonInit.cpp
@@ -2083,7 +2083,7 @@ PyObject *initGamePlayerPythonScripting(Main *maggie, int 
argc, char** argv)
 
        /* not essential but nice to set our name */
        static wchar_t program_path_wchar[FILE_MAX]; /* python holds a 
reference */
-       BLI_strncpy_wchar_from_utf8(program_path_wchar, BLI_program_path(), 
sizeof(program_path_wchar) / sizeof(wchar_t));
+       BLI_strncpy_wchar_from_utf8(program_path_wchar, 
BKE_appdir_program_path(), ARRAY_SIZE(program_path_wchar));
        Py_SetProgramName(program_path_wchar);
 
        /* Update, Py3.3 resolves attempting to parse non-existing header */
@@ -2184,9 +2184,10 @@ PyObject *initGamePythonScripting(Main *maggie)
 {
        /* not essential but nice to set our name */
        static wchar_t program_path_wchar[FILE_MAX]; /* python holds a 
reference */
-       BLI_strncpy_wchar_from_utf8(program_path_wchar, BLI_program_path(), 
sizeof(program_path_wchar) / sizeof(wchar_t));
+       BLI_strncpy_wchar_from_utf8(program_path_wchar, 
BKE_appdir_program_path(), ARRAY_SIZE(program_path_wchar));
        Py_SetProgramName(program_path_wchar);
 
+
 #ifdef WITH_AUDASPACE
        /* accessing a SoundActuator's sound results in a crash if aud is not 
initialized... */
        {

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to