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
path: root/source
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2011-03-30 10:27:39 +0400
committerCampbell Barton <ideasman42@gmail.com>2011-03-30 10:27:39 +0400
commit206e5b717997cdb4c9451444e1badd573b862261 (patch)
tree863fdc1e93fdc22f2ed6a1820837c7627d2d7a7b /source
parent5b19ec3559bb552550b12f7f2fb3dc16a3278621 (diff)
print warning on windows/mac when bundled python is not found, suggesting to build the 'install' target.
Diffstat (limited to 'source')
-rw-r--r--source/blender/python/intern/bpy_interface.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/source/blender/python/intern/bpy_interface.c b/source/blender/python/intern/bpy_interface.c
index c6b442fd930..f8214b643fe 100644
--- a/source/blender/python/intern/bpy_interface.c
+++ b/source/blender/python/intern/bpy_interface.c
@@ -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);