Files

17 lines
393 B
C#
Raw Permalink Normal View History

2025-11-20 14:07:55 +08:00
using IronPython.Hosting;
using Microsoft.Scripting.Hosting;
namespace WebAPIServer.Common
{
public class StaticData
{
public static ScriptEngine eng = Python.CreateEngine();
public static ScriptScope scope = eng.CreateScope();
public static void GetWebAPIMethod()
{
eng.ExecuteFile("ScriptConfig\\webapi.py", scope);
}
}
}