Hi, all,
I was write follows code in my WinForm application. But I got an
SyntaxErrorException "unexpected token 'print'".
ScriptRuntimeSetup runtimeSetup = new
ScriptRuntimeSetup(true);
this._runtime = ScriptRuntime.Create(runtimeSetup);
this._engine =
this._runtime.GetEngine(typeof(PythonContext));
this._scope = this._engine.CreateScope();
_engine.CreateScriptSourceFromString("print(\"test\")").Execute(_scope);
I think maybe the built-ins modules is not loaded in my code.
How to load it? Thanks.
----------------------------------------------------------------
Do ONE thing, and do it WELL.
Colin Han @ GrapeCity
_______________________________________________
Users mailing list
[email protected]
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com