I have a dll file that I need to import in Python. However when I try to load the assembly I get the error:
ModuleNotFoundError: No module named 'TEST_NET'
The assembly dll file is located in C:\Program Files\TEST APP\APP 7.0
under the name TEST_NET.Core.dll
My code is the following:
app_version = "7.0"
app_library = "C:\Program Files\TEST APP\APP 7.0"
# load app assemblies... replace the path below with the installation
# installation folder for your app installation.
# Import from .NET assemblies (both App and system)
sys.path.append(app_library)
clr.AddReference('TEST_NET.Core')
from TEST_NET.Core import*
The code was working well with a previous app version. But the new app that contains the file has return this issue where the module is not found when trying to import. Any idea what might be wrong here?
Thanks!