code_junkie

Help in FileNotFoundException -Python

Nov 13th, 2011
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. try:
  2. import clr, sys
  3. from xml.dom.minidom import parse
  4. import datetime
  5. sys.path.append("C:\teest")
  6. clr.AddReference("TCdll")
  7. from ClassLibrary1 import Class1
  8. cl = Class1()
  9. except ( ImportError ) :
  10. print "Module may not be existing "
  11.  
  12. Traceback (most recent call last):
  13. File "C:/Python25/13thjan/PSE.py", line 8, in <module>
  14. clr.AddReference("TCdll")
  15. FileNotFoundException: Unable to find assembly 'TCdll'.
  16. at Python.Runtime.CLRModule.AddReference(String name)
  17.  
  18. clr.AddReference("TCdll")
  19.  
  20. try:
  21. clr.AddReference("TCdll")
  22. except FileNotFoundException,e:
  23. print "Failed to find reference",e
  24. sys.exit(1)
Add Comment
Please, Sign In to add comment