Urgent Bug Report: clr.AddReference
Hi, Am trying to use clr.AddReference and clr.AddReferenceToFile, but python(2.7) keeps making this error: Traceback (most recent call last): File "<pyshell#5>", line 1, in <module> clr.AddReference("UnityEngine")AttributeError: 'module' object has no attribute 'AddReference' How can I fix this? Thanks in advance.
Did you import clr? Have a look at wiki and tutorial here: https://github.com/pythonnet/pythonnet On Wed, Dec 20, 2017, 2:58 PM Ranya Fafi <ranyafafi93@gmail.com> wrote:
Hi, Am trying to use clr.AddReference and clr.AddReferenceToFile, but python(2.7) keeps making this error:
Traceback (most recent call last): File "<pyshell#5>", line 1, in <module> clr.AddReference("UnityEngine")AttributeError: 'module' object has no attribute 'AddReference'
How can I fix this? Thanks in advance.
_________________________________________________ Python.NET mailing list - PythonDotNet@python.org https://mail.python.org/mailman/listinfo/pythondotnet
participants (2)
-
Denis Akhiyarov -
Ranya Fafi