Пример #1
0
        public void Init()
        {
            ScriptEngine  engine  = Python.CreateEngine();
            PythonContext context = HostingHelpers.GetLanguageContext(engine) as PythonContext;

            membersFromSystemState = context.GetMemberNames(context.SystemState);

            sysModuleFromBuiltinModuleDictionaryObject = null;
            context.BuiltinModuleDict.TryGetValue("sys", out sysModuleFromBuiltinModuleDictionaryObject);
        }