fix for own missing var in recent commit.
authorCampbell Barton <ideasman42@gmail.com>
Fri, 3 Jul 2009 11:46:46 +0000 (11:46 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Fri, 3 Jul 2009 11:46:46 +0000 (11:46 +0000)
source/blender/editors/include/UI_interface.h
source/blender/python/intern/bpy_interface.c

index 2894ffee77330629915a89f1a17509e65309f20a..b7c13505d2e7b1ae5126d1e7c732fd5973ae80ed 100644 (file)
@@ -51,6 +51,7 @@ struct rcti;
 struct rctf;
 struct uiStyle;
 struct uiFontStyle;
+struct uiWidgetColors;
 struct ColorBand;
 struct CurveMapping;
 struct Image;
index 2b1b72d0307da28404416ec4d59329cb542852dc..fbd8339741ecc0afaf450691425eaf01aa3104b7 100644 (file)
@@ -151,6 +151,7 @@ wchar_t* Py_GetPath(void)
 /* must be called before Py_Initialize */
 void BPY_start_python_path(void)
 {
+       char py_path[FILE_MAXDIR + 11] = "";
        char *py_path_bundle= BLI_gethome_folder("python");
 
        if(py_path_bundle==NULL)
@@ -171,7 +172,7 @@ void BPY_start_python_path(void)
        sprintf(py_path, "PYTHONPATH=%s", py_path_bundle)
        putenv(py_path);
 #else
-       setenv("PYTHONPATH", py_path_bundle, 1); /* initializing the video driver can cause crashes on some systems - Campbell */
+       setenv("PYTHONPATH", py_path_bundle, 1);
 #endif
 #endif