- Notifications
You must be signed in to change notification settings - Fork749
Closed as not planned
Description
This code works from Python:
import clrclr.AddReference("abc.dll")from ABC import abc
But when compiled with Cython--embed
, it fails:
cython test.py --embedcall vcvarsallbat x64cl test.c /I C:\Python38\include /link C:\Python38\libs\python38.libtest.exe
with:
Traceback (most recent call last):
File "test.py", line 3, in init test
ModuleNotFoundError: No module named 'ABC'
Is this related to#941?
Is there a temporary or permanent fix for this?
Thanks!
A good idea would be to have an import function that can be called onclr
namespace:
import clrclr.AddReference("abc.dll")ABC = clr.ImportModule('ABC')
that would not need to use the overriddenimport
built-in function.
Metadata
Metadata
Assignees
Labels
No labels