This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Rany
Recipients Rany, terry.reedy
Date 2017-12-21.21:58:48
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1513893528.75.0.213398074469.issue32405@psf.upfronthosting.co.za>
In-reply-to
Content
Am trying to use clr.AddReference and clr.AddReferenceToFile to import an assembly, 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'

Can anyone tell me how to fix this.
History
Date User Action Args
2017-12-21 21:58:48Ranysetrecipients: + Rany, terry.reedy
2017-12-21 21:58:48Ranysetmessageid: <1513893528.75.0.213398074469.issue32405@psf.upfronthosting.co.za>
2017-12-21 21:58:48Ranylinkissue32405 messages
2017-12-21 21:58:48Ranycreate