aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Modules/Python/PythonModule.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Modules/Python/PythonModule.cs')
-rw-r--r--OpenSim/Region/Modules/Python/PythonModule.cs96
1 files changed, 48 insertions, 48 deletions
diff --git a/OpenSim/Region/Modules/Python/PythonModule.cs b/OpenSim/Region/Modules/Python/PythonModule.cs
index 142a7df..48e0a59 100644
--- a/OpenSim/Region/Modules/Python/PythonModule.cs
+++ b/OpenSim/Region/Modules/Python/PythonModule.cs
@@ -1,48 +1,48 @@
1using System; 1using System;
2using System.Collections.Generic; 2using System.Collections.Generic;
3using System.Reflection; 3using System.Reflection;
4using System.Security.Policy; 4using System.Security.Policy;
5using System.Text; 5using System.Text;
6using IronPython.Hosting; 6using IronPython.Hosting;
7using log4net; 7using log4net;
8using Nini.Config; 8using Nini.Config;
9using OpenSim.Region.Environment.Interfaces; 9using OpenSim.Region.Environment.Interfaces;
10using OpenSim.Region.Environment.Scenes; 10using OpenSim.Region.Environment.Scenes;
11 11
12namespace OpenSim.Region.Modules.Python 12namespace OpenSim.Region.Modules.Python
13{ 13{
14 class PythonModule : IRegionModule 14 class PythonModule : IRegionModule
15 { 15 {
16 private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); 16 private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
17 private PythonEngine m_python; 17 private PythonEngine m_python;
18 18
19 public void Initialise(Scene scene, IConfigSource source) 19 public void Initialise(Scene scene, IConfigSource source)
20 { 20 {
21 21
22 } 22 }
23 23
24 public void PostInitialise() 24 public void PostInitialise()
25 { 25 {
26 /* 26 /*
27 m_log.Info("[PYTHON] Initialising IronPython engine."); 27 m_log.Info("[PYTHON] Initialising IronPython engine.");
28 m_python = new PythonEngine(); 28 m_python = new PythonEngine();
29 m_python.AddToPath(System.Environment.CurrentDirectory + System.IO.Path.DirectorySeparatorChar + "Python"); 29 m_python.AddToPath(System.Environment.CurrentDirectory + System.IO.Path.DirectorySeparatorChar + "Python");
30 */ 30 */
31 } 31 }
32 32
33 public void Close() 33 public void Close()
34 { 34 {
35 35
36 } 36 }
37 37
38 public string Name 38 public string Name
39 { 39 {
40 get { return "PythonModule"; } 40 get { return "PythonModule"; }
41 } 41 }
42 42
43 public bool IsSharedModule 43 public bool IsSharedModule
44 { 44 {
45 get { return true; } 45 get { return true; }
46 } 46 }
47 } 47 }
48} 48}