module binaries.add_reference

Short summary

module csharpyml.binaries.add_reference

Add references to DLL.

source on GitHub

Functions

function truncated documentation
add_csharpml_extension Imports CSharpExtension into global context. This binary has a version. On Windows, the system might …
AddReference Imports a C# dll.

Documentation

Add references to DLL.

source on GitHub

csharpyml.binaries.add_reference.AddReference(name, version=None)[source]

Imports a C# dll.

Parameters:
  • name – name of the DLL.
  • version‘Release’ or ‘Debug’
Returns:

imported DLL

If the version is None, it first tries ‘Release’ then ‘Debug’.

source on GitHub

csharpyml.binaries.add_reference.add_csharpml_extension()[source]

Imports CSharpExtension into global context.

This binary has a version. On Windows, the system might decide to skip the replacement of an assembly because it is in use. You can check the version of this by using the following code.

Imports the C# extension into Python

<<<

from csharpyml.binaries import add_csharpml_extension
from csharpyml import __version__

add_csharpml_extension()

# This line needs to be after the previous one.
from CSharPyMLExtension import Constants

vers = Constants.Version()
print(__version__, vers)

>>>

    0.1 0.1

source on GitHub