Importing modules in embedded python
Advertisements I’m trying to get module imports to work in embeddable python, but it doesn’t want to work C:\Users\test\Desktop\winpy\python-3.10.10-embed-win32>type run_scripts\script.py from module_test import test print("Hello world!") print(test()) C:\Users\test\Desktop\winpy\python-3.10.10-embed-win32>type run_scripts\module_test.py def test(): return "Test!" C:\Users\test\Desktop\winpy\python-3.10.10-embed-win32>@python.exe run_scripts\script.py Traceback (most recent call last): File "C:\Users\test\Desktop\winpy\python-3.10.10-embed-win32\run_scripts\script.py", line 1, in <module> from module_test import test ModuleNotFoundError: No module named ‘module_test’… Read More Importing modules in embedded python