public static ScriptSource CreateScriptSourceFromPathSuffix(this ScriptEngine engine, String scriptPathameSuffix) { var context = engine.essenceSharpContext(); FileInfo scriptPath; if (context.scriptPathnameFor(scriptPathameSuffix, out scriptPath)) { return(engine.CreateScriptSourceFromFile(scriptPath.FullName)); } return(null); }
public static ESObjectSpace essenceSharpObjectSpace(this ScriptEngine engine) { return(engine.essenceSharpContext().ObjectSpace); }