bpy.ops.import.obj("somepath") is invalid syntax because import is a keyword.

rename import to import_scene, import_anim, future import_sequence_edl, import_model etc..
This commit is contained in:
2009-11-04 17:16:58 +00:00
parent edeae7477b
commit 8af525f860
5 changed files with 16 additions and 12 deletions

View File

@@ -157,6 +157,10 @@ class CONSOLE_OT_exec(bpy.types.Operator):
console, stdout, stderr = get_console(hash(context.region))
# Hack, useful but must add some other way to access
#if "C" not in console.locals:
console.locals["C"] = context
# redirect output
sys.stdout = stdout
sys.stderr = stderr
@@ -222,7 +226,7 @@ class CONSOLE_OT_autocomplete(bpy.types.Operator):
sc = context.space_data
console = get_console(hash(context.region))[0]
current_line = sc.history[-1]
line = current_line.line