diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/Modules/Python/PythonModule.cs | 96 |
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 @@ | |||
1 | using System; | 1 | using System; |
2 | using System.Collections.Generic; | 2 | using System.Collections.Generic; |
3 | using System.Reflection; | 3 | using System.Reflection; |
4 | using System.Security.Policy; | 4 | using System.Security.Policy; |
5 | using System.Text; | 5 | using System.Text; |
6 | using IronPython.Hosting; | 6 | using IronPython.Hosting; |
7 | using log4net; | 7 | using log4net; |
8 | using Nini.Config; | 8 | using Nini.Config; |
9 | using OpenSim.Region.Environment.Interfaces; | 9 | using OpenSim.Region.Environment.Interfaces; |
10 | using OpenSim.Region.Environment.Scenes; | 10 | using OpenSim.Region.Environment.Scenes; |
11 | 11 | ||
12 | namespace OpenSim.Region.Modules.Python | 12 | namespace 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 | } |