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