Beispiel #1
0
 public void Interpret(InterpretArgs args)
 {
     try
     {
         PythonInterpretArgs pargs = new PythonInterpretArgs(args);
         if (_interpretFunc != null)
         {
             _scope.Engine.Operations.Invoke(_interpretFunc, pargs);
         }
     }
     catch (Exception e)
     {
         throw PythonScriptHost.Instance.GetFormattedException(e, Name);
     }
 }
Beispiel #2
0
        public void Interpret(InterpretArgs args)
        {
            try
            {
                PythonInterpretArgs pargs = new PythonInterpretArgs(args);
                if (_interpretFunc != null)
                {
                    _scope.Engine.Operations.Invoke(_interpretFunc, pargs);
                }

            }
            catch(Exception e)
            {
                throw PythonScriptHost.Instance.GetFormattedException(e, Name);
            }
            
        }