Code: Select all
>>>import clr
>>>clr.AddReference('example_file')
Code: Select all
Traceback (most recent call last):
File "", line 1, in
System.IO.FileNotFoundException: Unable to find assembly 'example_file'.
at Python.Runtime.CLRModule.AddReference(String name)
Code: Select all
>>> sys.path
['', 'C:\\Python27\\lib\\site-packages\\pip-1.2.1-py2.7.egg', 'C:\\Python27', 'C
:\\Windows\\system32\\python27.zip', 'C:\\Python27\\DLLs', 'C:\\Python27\\lib',
'C:\\Python27\\lib\\plat-win', 'C:\\Python27\\lib\\lib-tk', 'C:\\Python27\\lib\\
site-packages', 'C:\\Windows\\Microsoft.NET\\Framework\\v4.0.30319\\']
Code: Select all
>>>clr.FindAssembly('example_file')
Code: Select all
u'example_file.dll
Ich arbeite mit Windows 7 x64, Python 2.73 und .Net Framework 4
Mobile version