Scripting.MapDirectory("Host", "HostScripts", true);
//parameters: Alias, Path, true (means the path is relative to the exe directory)
Scripting.AddReference(typeof(PyObject).Assembly, PyRuntime.Private);
//Adding the object definition to the private engine so that I can inherit it in a Python class
PyObject py = Scripting.GetObject<PyObject>(cmd[2], "Host", target);
//Creating the object. cmd[2] represents the filename (i.e. script.py), the alias path to look in
//and target represents the engine I want.
var obj = new EditObject();
var scope = Scripting.GetScope(target);
//Again target represents the desired instance, public or private.
scope.SetVariable("Obj", new EOWrapper(obj));
//Adding the object to make it available as Obj to the python script.
//The EOWrapper represents the 'API' I want it to have.
Scripting.RunScript(cmd[2], "Host", scope);
Heh. I remember when you were supposed to make Linux swap partitions of
128M or less, because more would not be used.
I suspect most mud admins have no real clue whther they're swapping or not,
unless they're hosting out of their own basement. With hosting solutions these
days being black boxes to the end user, I think I'd be hard pressed to know myself.
-Crat
http://lpmuds.net