[Python.NET] Question: How can I import what I created in C#

Brian Lloyd brian at zope.com
Tue May 25 14:37:24 EDT 2004


Hi Sam - generally, if you have created an assembly named 'A.B.dll', and the
name of the assembly matches the namespaces it contains ('A', 'A.B'), then
you
should just be able to do:

from A.B import SomeClass


...after making sure that A.B.dll is on the python path.

Hope this helps - the readme.txt that comes with Python for .NET goes into a
bit
more detail, if you haven't seen that already.



Brian Lloyd        brian at zope.com
V.P. Engineering   540.361.1716
Zope Corporation   http://www.zope.com


  -----Original Message-----
  From: pythondotnet-bounces+brian=zope.com at python.org
[mailto:pythondotnet-bounces+brian=zope.com at python.org]On Behalf Of Sam
Sungshik Kong
  Sent: Tuesday, May 25, 2004 11:19 AM
  To: pythondotnet at python.org
  Subject: [Python.NET] Question: How can I import what I created in C#


  Hello!

  PythonDotNet is very imporessive.
  I was very excited seeing it working with .Net classes.

  My question is that how I can import classes(namespaces) that I made in
C#.
  In C#, I give a compile option for the dll that I created.
  How can I do it with Python?

  Thanks.

  Sam
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/pythondotnet/attachments/20040525/5d3c9bd9/attachment.html


More information about the PythonDotNet mailing list