ä¹ ã ã« C# ãã Iron Python ãå¼ã³åºããã¨ãã¦å¤ãã£ã¦ãã®ã§ã¡ã¢ã 1.1.2.0 using (PythonEngine engine = new IronPython.Hosting.PythonEngine()) // Python Engine çæ { engine.LoadAssembly(System.Reflection.Assembly.GetExecutingAssembly()); // Engine ã«å¿ è¦ãªã¢ã»ã³ããªãèªã¿è¾¼ã¾ã engine.ExecuteFile(string.Format("{0}/hoge.py", ScriptFilePath)); // py ãã¡ã¤ã«ãå®è¡ ret = engine.EvaluateAs<T>("createdInstance"); // å®è¡å¾ã«ãcreateInstance ã¨ããååã®å¤ãåå¾ }
{{#tags}}- {{label}}
{{/tags}}