I have a script that uses a library that is not available in python 3. I used the answer (execnet) to this question to call the python 2 script X from a python 3 script Y. This works fine without any problem. I added both scripts to the directory of the Django app I want to use script X in. Testing script Y still works. Importing script Y to be called from views.py works. Calling the function in Y form views.py works. But now script Y does not find script X anymore.
The Django error says ImportError: No module named X
If I add the script n the settings.py script to INSTALLED_APPS
I get
ModuleNotFoundError: No module named 'X'
.
Is there an easier way to run a python2 script from django 3?