[Ironpython-users] How to find the location(full path) of .dll file Referenced in clr.AddReference
Santhosh M
santhosh.murugadass at ansys.com
Thu Aug 17 01:14:54 EDT 2017
Hi Members,
I am starting to learn Ironpython for customization of an existing CAE
software.
I have a basic question
I am referencing some assembly .dlls like below
clr.AddReference("System")
clr.AddReference("Ans.Utilities") , this is specific to software that I am
planning to customize.
these two .dlls are successfully added, no issues in that.
How can i print the location (full file path) of these two .dlls ?
I tired followings but i am not successful. Request your kind advice.
>>> from System.Runtime.InteropServices import RuntimeEnvironment
>>>print RuntimeEnvironment.GetRuntimeDirectory()
C:\Windows\Microsoft.NET\Framework64\v4.0.30319\
>>>sysAssy = clr.AddReference("System")
>>>print sysAssy.FullName
'NoneType' object has no attribute 'FullName'
>>> print sysAssy.Location
'NoneType' object has no attribute 'Location'
Regards,
Santhosh M,
ANSYS, Bangalore, INDIA.
Phone: 080 - 67722500 / 080- 49010800
Mobile : +91 9663708004
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20170817/087dfe49/attachment.html>
More information about the Ironpython-users
mailing list