aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Modules/Python/PythonModule.cs
diff options
context:
space:
mode:
authorAdam Frisby2008-05-08 04:34:02 +0000
committerAdam Frisby2008-05-08 04:34:02 +0000
commit80cbd468ea4dca31c0bf28607f4ab3ed3963f765 (patch)
tree2cc6dd32a1c954f8af16ac46f2a7a5138418fefa /OpenSim/Region/Modules/Python/PythonModule.cs
parent* For no good reason (since there are a hundred million other things to fix),... (diff)
downloadopensim-SC_OLD-80cbd468ea4dca31c0bf28607f4ab3ed3963f765.zip
opensim-SC_OLD-80cbd468ea4dca31c0bf28607f4ab3ed3963f765.tar.gz
opensim-SC_OLD-80cbd468ea4dca31c0bf28607f4ab3ed3963f765.tar.bz2
opensim-SC_OLD-80cbd468ea4dca31c0bf28607f4ab3ed3963f765.tar.xz
* Some refactorings.
* Added shell of new Python scripting engine. Similar in design to the one used by Rex, but will be structured at a region rather than object level, also is a region module.
Diffstat (limited to 'OpenSim/Region/Modules/Python/PythonModule.cs')
-rw-r--r--OpenSim/Region/Modules/Python/PythonModule.cs48
1 files changed, 48 insertions, 0 deletions
diff --git a/OpenSim/Region/Modules/Python/PythonModule.cs b/OpenSim/Region/Modules/Python/PythonModule.cs
new file mode 100644
index 0000000..142a7df
--- /dev/null
+++ b/OpenSim/Region/Modules/Python/PythonModule.cs
@@ -0,0 +1,48 @@
1using System;
2using System.Collections.Generic;
3using System.Reflection;
4using System.Security.Policy;
5using System.Text;
6using IronPython.Hosting;
7using log4net;
8using Nini.Config;
9using OpenSim.Region.Environment.Interfaces;
10using OpenSim.Region.Environment.Scenes;
11
12namespace OpenSim.Region.Modules.Python
13{
14 class PythonModule : IRegionModule
15 {
16 private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
17 private PythonEngine m_python;
18
19 public void Initialise(Scene scene, IConfigSource source)
20 {
21
22 }
23
24 public void PostInitialise()
25 {
26 /*
27 m_log.Info("[PYTHON] Initialising IronPython engine.");
28 m_python = new PythonEngine();
29 m_python.AddToPath(System.Environment.CurrentDirectory + System.IO.Path.DirectorySeparatorChar + "Python");
30 */
31 }
32
33 public void Close()
34 {
35
36 }
37
38 public string Name
39 {
40 get { return "PythonModule"; }
41 }
42
43 public bool IsSharedModule
44 {
45 get { return true; }
46 }
47 }
48}