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:
authorStephen Swaney <sswaney@centurytel.net>2004-10-01 09:28:14 +0400
committerStephen Swaney <sswaney@centurytel.net>2004-10-01 09:28:14 +0400
commit820a83dda835c172a59c1ee474dc7a1205f36151 (patch)
treeadf1cff899710cc8c4b4607aa402b00e18c62d1f /source
parent30ef2326b90a2048c3889fb73e581fe854f8296f (diff)
Tweak the bpy 'import site failed' msg.
A half-hearted attempt to make the World's Scariest Warning Msg just a tad less scary.
Diffstat (limited to 'source')
-rw-r--r--source/blender/python/BPY_interface.c15
1 files changed, 14 insertions, 1 deletions
diff --git a/source/blender/python/BPY_interface.c b/source/blender/python/BPY_interface.c
index 8411ee00cb9..b571b0af5eb 100644
--- a/source/blender/python/BPY_interface.c
+++ b/source/blender/python/BPY_interface.c
@@ -120,6 +120,15 @@ void BPY_start_python(void)
/* TODO: Shouldn't "blender" be replaced by PACKAGE ?? (config.h) */
Py_SetProgramName("blender");
+ /*
+ * Py_Initialize() will attempt to import the site module and
+ * print an error if not found. See init_syspath() for the
+ * rest of our init msgs.
+ */
+
+ printf("Checking for Python install...\n");
+ fflush( stdout );
+
Py_Initialize ();
init_ourImport ();
@@ -224,6 +233,8 @@ void init_syspath(void)
int size = 0;
int index;
+ printf("Installed Python found!\n");
+
/* get the value of 'sitedirs' from the module */
/* the ref man says GetDict() never fails!!! */
@@ -244,7 +255,9 @@ void init_syspath(void)
}
else { /* import 'site' failed */
PyErr_Clear();
- printf("sys_init:warning - no sitedirs added from site module.\n");
+ printf("No installed Python found.\n");
+ printf("Only built-in modules are available. Some scripts may not run.\n");
+ printf("Continuing happily.\n");
}
/*