From 8378aa74fa8e1fc035962fccfe59eec72356f5f2 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Wed, 23 Feb 2011 01:20:40 +0000 Subject: [PATCH] python console namespace fix, merging namespace dicts was no good, since it pulled in private vars. use normal import command. --- release/scripts/op/console_python.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/release/scripts/op/console_python.py b/release/scripts/op/console_python.py index 98d3f3f74a3..dc2a0a7713c 100644 --- a/release/scripts/op/console_python.py +++ b/release/scripts/op/console_python.py @@ -83,11 +83,11 @@ def get_console(console_id): namespace["bpy"] = bpy namespace["C"] = bpy.context - namespace.update(__import__("mathutils").__dict__) # from mathutils import * - namespace.update(__import__("math").__dict__) # from math import * - console = InteractiveConsole(locals=namespace, filename="") + console.push("from mathutils import *") + console.push("from math import *") + if _BPY_MAIN_OWN: console._bpy_main_mod = bpy_main_mod