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
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2011-02-23 04:20:40 +0300
committerCampbell Barton <ideasman42@gmail.com>2011-02-23 04:20:40 +0300
commit8378aa74fa8e1fc035962fccfe59eec72356f5f2 (patch)
tree3a823e63968b1ef640b8ad5b2c89a6162e50700f /release
parent3f96359d5a9415b4d630513f131d0393b5094981 (diff)
python console namespace fix, merging namespace dicts was no good, since it pulled in private vars. use normal import command.
Diffstat (limited to 'release')
-rw-r--r--release/scripts/op/console_python.py6
1 files 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="<blender_console>")
+ console.push("from mathutils import *")
+ console.push("from math import *")
+
if _BPY_MAIN_OWN:
console._bpy_main_mod = bpy_main_mod