print warning on windows/mac when bundled python is not found, suggesting to build...
authorCampbell Barton <ideasman42@gmail.com>
Wed, 30 Mar 2011 06:27:39 +0000 (06:27 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Wed, 30 Mar 2011 06:27:39 +0000 (06:27 +0000)
source/blender/python/intern/bpy_interface.c

index c6b442fd930dc35a743238588c2eb103f41c327d..f8214b643fe38aa9b704d86d14e0042cf53a11e7 100644 (file)
@@ -170,9 +170,13 @@ static void bpy_python_start_path(void)
 {
        char *py_path_bundle= BLI_get_folder(BLENDER_PYTHON, NULL);
 
-       if(py_path_bundle==NULL)
+       if(py_path_bundle==NULL) {
+               /* Common enough to have bundled *nix python but complain on OSX/Win */
+#if defined(__APPLE__) || defined(_WIN32)
+               fprintf(stderr, "Bundled python is expected on this platform, if blender fails to load build the 'install' target\n");
+#endif
                return;
-
+       }
        /* set the environment path */
        printf("found bundled python: %s\n", py_path_bundle);