aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Modules/Python
diff options
context:
space:
mode:
authorJeff Ames2008-05-09 16:24:28 +0000
committerJeff Ames2008-05-09 16:24:28 +0000
commitf9c6cc36e153baeddc873b6c69698dcfa63161f0 (patch)
tree4a1e95fa6acfb6150c3ffe6391558d8166a70a1b /OpenSim/Region/Modules/Python
parent* Minor: Insert utility function to format raw xml strings into indented xml ... (diff)
downloadopensim-SC_OLD-f9c6cc36e153baeddc873b6c69698dcfa63161f0.zip
opensim-SC_OLD-f9c6cc36e153baeddc873b6c69698dcfa63161f0.tar.gz
opensim-SC_OLD-f9c6cc36e153baeddc873b6c69698dcfa63161f0.tar.bz2
opensim-SC_OLD-f9c6cc36e153baeddc873b6c69698dcfa63161f0.tar.xz
Update svn properties.
Diffstat (limited to 'OpenSim/Region/Modules/Python')
-rw-r--r--OpenSim/Region/Modules/Python/Properties/AssemblyInfo.cs72
-rw-r--r--OpenSim/Region/Modules/Python/PythonAPI/Console.cs42
-rw-r--r--OpenSim/Region/Modules/Python/PythonModule.cs96
3 files changed, 105 insertions, 105 deletions
diff --git a/OpenSim/Region/Modules/Python/Properties/AssemblyInfo.cs b/OpenSim/Region/Modules/Python/Properties/AssemblyInfo.cs
index e4d7852..0839267 100644
--- a/OpenSim/Region/Modules/Python/Properties/AssemblyInfo.cs
+++ b/OpenSim/Region/Modules/Python/Properties/AssemblyInfo.cs
@@ -1,36 +1,36 @@
1using System.Reflection; 1using System.Reflection;
2using System.Runtime.CompilerServices; 2using System.Runtime.CompilerServices;
3using System.Runtime.InteropServices; 3using System.Runtime.InteropServices;
4 4
5// General Information about an assembly is controlled through the following 5// General Information about an assembly is controlled through the following
6// set of attributes. Change these attribute values to modify the information 6// set of attributes. Change these attribute values to modify the information
7// associated with an assembly. 7// associated with an assembly.
8[assembly: AssemblyTitle("Python")] 8[assembly: AssemblyTitle("Python")]
9[assembly: AssemblyDescription("")] 9[assembly: AssemblyDescription("")]
10[assembly: AssemblyConfiguration("")] 10[assembly: AssemblyConfiguration("")]
11[assembly: AssemblyCompany("")] 11[assembly: AssemblyCompany("")]
12[assembly: AssemblyProduct("Python")] 12[assembly: AssemblyProduct("Python")]
13[assembly: AssemblyCopyright("Copyright © 2008")] 13[assembly: AssemblyCopyright("Copyright © 2008")]
14[assembly: AssemblyTrademark("")] 14[assembly: AssemblyTrademark("")]
15[assembly: AssemblyCulture("")] 15[assembly: AssemblyCulture("")]
16 16
17// Setting ComVisible to false makes the types in this assembly not visible 17// Setting ComVisible to false makes the types in this assembly not visible
18// to COM components. If you need to access a type in this assembly from 18// to COM components. If you need to access a type in this assembly from
19// COM, set the ComVisible attribute to true on that type. 19// COM, set the ComVisible attribute to true on that type.
20[assembly: ComVisible(false)] 20[assembly: ComVisible(false)]
21 21
22// The following GUID is for the ID of the typelib if this project is exposed to COM 22// The following GUID is for the ID of the typelib if this project is exposed to COM
23[assembly: Guid("5bd55f67-385d-4a43-893a-b5d2ea43f07d")] 23[assembly: Guid("5bd55f67-385d-4a43-893a-b5d2ea43f07d")]
24 24
25// Version information for an assembly consists of the following four values: 25// Version information for an assembly consists of the following four values:
26// 26//
27// Major Version 27// Major Version
28// Minor Version 28// Minor Version
29// Build Number 29// Build Number
30// Revision 30// Revision
31// 31//
32// You can specify all the values or you can default the Build and Revision Numbers 32// You can specify all the values or you can default the Build and Revision Numbers
33// by using the '*' as shown below: 33// by using the '*' as shown below:
34// [assembly: AssemblyVersion("1.0.*")] 34// [assembly: AssemblyVersion("1.0.*")]
35[assembly: AssemblyVersion("1.0.0.0")] 35[assembly: AssemblyVersion("1.0.0.0")]
36[assembly: AssemblyFileVersion("1.0.0.0")] 36[assembly: AssemblyFileVersion("1.0.0.0")]
diff --git a/OpenSim/Region/Modules/Python/PythonAPI/Console.cs b/OpenSim/Region/Modules/Python/PythonAPI/Console.cs
index 0d23dc6..3fe1f91 100644
--- a/OpenSim/Region/Modules/Python/PythonAPI/Console.cs
+++ b/OpenSim/Region/Modules/Python/PythonAPI/Console.cs
@@ -1,21 +1,21 @@
1using System; 1using System;
2using System.Reflection; 2using System.Reflection;
3using log4net; 3using log4net;
4 4
5namespace OpenSim.Region.Modules.Python.PythonAPI 5namespace OpenSim.Region.Modules.Python.PythonAPI
6{ 6{
7 class Console 7 class Console
8 { 8 {
9 private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); 9 private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
10 10
11 public void WriteLine(string txt) 11 public void WriteLine(string txt)
12 { 12 {
13 m_log.Info(txt); 13 m_log.Info(txt);
14 } 14 }
15 15
16 public void WriteLine(string txt, params Object[] e) 16 public void WriteLine(string txt, params Object[] e)
17 { 17 {
18 m_log.Info(String.Format(txt, e)); 18 m_log.Info(String.Format(txt, e));
19 } 19 }
20 } 20 }
21} 21}
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}