Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 394871 | Differences between
and this patch

Collapse All | Expand All

(-)blender-2.63.orig/source/blender/python/intern/bpy_interface.c (-5 lines)
Lines 241-251 void BPY_python_start(int argc, const ch Link Here
241
	 * blender is utf-8 too - campbell */
241
	 * blender is utf-8 too - campbell */
242
	BLI_setenv("PYTHONIOENCODING", "utf-8:surrogateescape");
242
	BLI_setenv("PYTHONIOENCODING", "utf-8:surrogateescape");
243
243
244
	/* Python 3.2 now looks for '2.xx/python/include/python3.2d/pyconfig.h' to
245
	 * parse from the 'sysconfig' module which is used by 'site',
246
	 * so for now disable site. alternatively we could copy the file. */
247
	Py_NoSiteFlag = 1;
248
249
	Py_Initialize();
244
	Py_Initialize();
250
245
251
	// PySys_SetArgv(argc, argv); // broken in py3, not a huge deal
246
	// PySys_SetArgv(argc, argv); // broken in py3, not a huge deal
(-)blender-2.63.orig/source/gameengine/Ketsji/KX_PythonInit.cpp (-2 lines)
Lines 1848-1854 PyObject* initGamePlayerPythonScripting( Link Here
1848
	STR_String pname = progname;
1848
	STR_String pname = progname;
1849
	Py_SetProgramName(pname.Ptr());
1849
	Py_SetProgramName(pname.Ptr());
1850
#endif
1850
#endif
1851
	Py_NoSiteFlag=1;
1852
	Py_FrozenFlag=1;
1851
	Py_FrozenFlag=1;
1853
1852
1854
	/* must run before python initializes */
1853
	/* must run before python initializes */
Lines 1929-1935 PyObject* initGamePythonScripting(const Link Here
1929
	STR_String pname = progname;
1928
	STR_String pname = progname;
1930
	Py_SetProgramName(pname.Ptr());
1929
	Py_SetProgramName(pname.Ptr());
1931
#endif
1930
#endif
1932
	Py_NoSiteFlag=1;
1933
	Py_FrozenFlag=1;
1931
	Py_FrozenFlag=1;
1934
1932
1935
#ifdef WITH_AUDASPACE
1933
#ifdef WITH_AUDASPACE

Return to bug 394871