Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- try:
- import clr, sys
- from xml.dom.minidom import parse
- import datetime
- sys.path.append("C:\teest")
- clr.AddReference("TCdll")
- from ClassLibrary1 import Class1
- cl = Class1()
- except ( ImportError ) :
- print "Module may not be existing "
- Traceback (most recent call last):
- File "C:/Python25/13thjan/PSE.py", line 8, in <module>
- clr.AddReference("TCdll")
- FileNotFoundException: Unable to find assembly 'TCdll'.
- at Python.Runtime.CLRModule.AddReference(String name)
- clr.AddReference("TCdll")
- try:
- clr.AddReference("TCdll")
- except FileNotFoundException,e:
- print "Failed to find reference",e
- sys.exit(1)
Add Comment
Please, Sign In to add comment