Class IronPythonLanguage
Implementation of the IronPython language to use in the simplic dlr implementation
Inheritance
System.Object
IronPythonLanguage
Implements
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Simplic.Dlr
Assembly: Simplic.Dlr.dll
Syntax
public class IronPythonLanguage : IDlrLanguage
Constructors
| Improve this Doc View SourceIronPythonLanguage()
Create IronPythonLanguage instance for using in a DlrHost
Declaration
public IronPythonLanguage()
Fields
| Improve this Doc View SourceLOAD_REFERENCES_AUTOMATICALLY
Load references
Declaration
public const bool LOAD_REFERENCES_AUTOMATICALLY = true
Field Value
Type | Description |
---|---|
System.Boolean |
PACKAGE_DEFINITION_FILE
File which defines a package
Declaration
public const string PACKAGE_DEFINITION_FILE = "__init__.py"
Field Value
Type | Description |
---|---|
System.String |
PACKAGE_SEPARATOR
Character for package separation
Declaration
public const char PACKAGE_SEPARATOR = '/'
Field Value
Type | Description |
---|---|
System.Char |
PYTHON_FILE_EXTENSION
Default extension of a python file
Declaration
public const string PYTHON_FILE_EXTENSION = ".py"
Field Value
Type | Description |
---|---|
System.String |
Properties
| Improve this Doc View SourceArgv
Gets or sets a list of arguments
Declaration
public IList<string> Argv { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IList<System.String> |
EnableZipImporter
Enable or disable zip-importer. By default it is disabled
Declaration
public bool EnableZipImporter { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
LanguageOptionSet
Gets or sets a set of language options. For example Arguments for passing argv
Declaration
public IDictionary<string, object> LanguageOptionSet { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IDictionary<System.String, System.Object> |
UseAssemblyAutodetection
Autodetect assemblies on importing scripts
Declaration
public bool UseAssemblyAutodetection { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Methods
| Improve this Doc View SourceAddBuildInModule(String)
Add Build-In module
Declaration
public void AddBuildInModule(string module)
Parameters
Type | Name | Description |
---|---|---|
System.String | module | Module name, like sys or clr, ... |
CreateEngine(ScriptRuntime)
Create new scripting engine
Declaration
public ScriptEngine CreateEngine(ScriptRuntime runtime)
Parameters
Type | Name | Description |
---|---|---|
ScriptRuntime | runtime | Instance of the current runtime enviroement |
Returns
Type | Description |
---|---|
ScriptEngine | Instance of IP script engine |
CreateRuntime()
Create new runtime setup
Declaration
public ScriptRuntimeSetup CreateRuntime()
Returns
Type | Description |
---|---|
ScriptRuntimeSetup |