RequireFile ( string path ) : bool |
Loads a given script file using the semantics of Kernel#require method. If a relative path is given the current search paths are used to locate the script file. The current search paths could be read and modified via ScriptEngine.GetSearchPaths and ScriptEngine.SetSearchPaths, respectively. |
|
RequireFile ( string path, ScriptScope scope ) : bool |
Loads a given script file using the semantics of Kernel#require method. The script is executed within the context of a given ScriptScope. If a relative path is given the current search paths are used to locate the script file. The current search paths could be read and modified via ScriptEngine.GetSearchPaths and ScriptEngine.SetSearchPaths, respectively. |
|