diff options
author | Ines Almeida <britalmeida@gmail.com> | 2015-01-12 17:59:02 +0300 |
---|---|---|
committer | Ines Almeida <britalmeida@gmail.com> | 2015-02-03 18:32:55 +0300 |
commit | e67bd30bdf9282f01f5bc3c44503aa496127c582 (patch) | |
tree | 39bc3825700cbf853f96344995b8bed49bb6ed4f /source/gameengine/Ketsji/KX_PythonInit.cpp | |
parent | ba0978c1a97668fb42a58c3f8479e910e69fd088 (diff) |
BGE: python API cleanup - replace BLI_program_path with BKE_appdir_program_path
Diffstat (limited to 'source/gameengine/Ketsji/KX_PythonInit.cpp')
-rw-r--r-- | source/gameengine/Ketsji/KX_PythonInit.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source/gameengine/Ketsji/KX_PythonInit.cpp b/source/gameengine/Ketsji/KX_PythonInit.cpp index 26b956192d1..3e207a06244 100644 --- a/source/gameengine/Ketsji/KX_PythonInit.cpp +++ b/source/gameengine/Ketsji/KX_PythonInit.cpp @@ -2097,7 +2097,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 */ @@ -2198,9 +2198,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... */ { |