Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2011-10-22 23:06:41 +0400
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2011-10-22 23:06:41 +0400
commit2bfd10131e7bcd5926c65c381a3e987145b02ad9 (patch)
treeb88f9d4cc842a78db4f555d23c1412a950569661 /source/blender/python/intern/bpy_interface.c
parent83a44e48e7cb5cc6c794b50bb168a21144baeb06 (diff)
parent726fa618172733f3c4dc5ee85642829400e68f7b (diff)
Cycles: svn merge -r41182:41205 ^/trunk/blender
Diffstat (limited to 'source/blender/python/intern/bpy_interface.c')
-rw-r--r--source/blender/python/intern/bpy_interface.c15
1 files changed, 9 insertions, 6 deletions
diff --git a/source/blender/python/intern/bpy_interface.c b/source/blender/python/intern/bpy_interface.c
index a937dcb1c89..d8a6b192a23 100644
--- a/source/blender/python/intern/bpy_interface.c
+++ b/source/blender/python/intern/bpy_interface.c
@@ -208,9 +208,9 @@ void BPY_python_start(int argc, const char **argv)
/* allow to use our own included python */
PyC_SetHomePath(BLI_get_folder(BLENDER_SYSTEM_PYTHON, NULL));
- /* Python 3.2 now looks for '2.58/python/include/python3.2d/pyconfig.h' to parse
- * from the 'sysconfig' module which is used by 'site', so for now disable site.
- * alternatively we could copy the file. */
+ /* Python 3.2 now looks for '2.xx/python/include/python3.2d/pyconfig.h' to
+ * parse from the 'sysconfig' module which is used by 'site',
+ * so for now disable site. alternatively we could copy the file. */
Py_NoSiteFlag= 1;
Py_Initialize();
@@ -220,8 +220,11 @@ void BPY_python_start(int argc, const char **argv)
{
int i;
PyObject *py_argv= PyList_New(argc);
- for (i=0; i<argc; i++)
- PyList_SET_ITEM(py_argv, i, PyC_UnicodeFromByte(argv[i])); /* should fix bug #20021 - utf path name problems, by replacing PyUnicode_FromString */
+ for (i=0; i<argc; i++) {
+ /* should fix bug #20021 - utf path name problems, by replacing
+ * PyUnicode_FromString, with this one */
+ PyList_SET_ITEM(py_argv, i, PyC_UnicodeFromByte(argv[i]));
+ }
PySys_SetObject("argv", py_argv);
Py_DECREF(py_argv);
@@ -676,7 +679,7 @@ int BPY_context_member_get(bContext *C, const char *member, bContextDataResult *
#ifdef WITH_PYTHON_MODULE
-#include "BLI_storage.h"
+#include "BLI_fileops.h"
/* TODO, reloading the module isnt functional at the moment. */
static void bpy_module_free(void *mod);