To reproduce, follow these steps
- Create a new Python Application in Visual Studio.
- Set the 'Launch mode' to 'IronPython (.NET) launcher'.
- Go to the project properties, and on the DEBUG tab set a search path.
-
Write some code to import modules from that search path.
When running the program, the following error is encountered:
Traceback (most recent call last):
File "C:\XXX\XXX.py", line
2, in <module>
ImportError: No module named XXX
CLR Exception:
ImportException
:
No module named XXX
Press any key to continue . . .