[Python.NET] C# components for script

Maksim Kozyarchuk mkozyarchuk at hedgeserv.com
Tue Nov 11 14:20:27 CET 2008


Mandeep,
    You have 2 options.
    * You can use LoadFrom to load the dll from a particular location
    import clr
    import System
    System.Reflection.Assembly.LoadFrom("your.DLL")
   * If your DLL and Namespace have the same name python.net should be able
to find the dll in the PYTHONPATH

Maksim

Singh, Mandeep schrieb:
> Hi,
>         I have written c# components to be used by Python. I note that
> those components need to be placed in the Pythonnet installation
> directory because its like private assemblies being loaded. Is there a
> way I can place them in separate location?
>
> Thanks & regards,
> /Mandeep Singh**/******
> *Equity IT*
> *Credit Suisse*
> Tel: (+65) 6212 8755
>
>
> ==============================================================================
> Please access the attached hyperlink for an important electronic
communications disclaimer:
>
> http://www.credit-suisse.com/legal/en/disclaimer_email_ib.html
> ==============================================================================
>
>
> ------------------------------------------------------------------------


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/pythondotnet/attachments/20081111/fa1fb205/attachment.htm>


More information about the PythonDotNet mailing list