Hello!
I’m developing a cross-platform GUI application using Avalonia, which integrates OpenTAP to execute tests. I’m currently working on Ubuntu 24.04 with the latest versions of OpenTap, and OpenTap.Python package. I run into a problem while developing. I can’t make my application see the virtual environment. Changing the PYTHONHOME environment variable does not seem to be a viable solution on Ubuntu. I was able to make the OpenTAP Editor recognize my Python environment only by installing OpenTAP directly into the virtual environment folder. Unfortunattly the same doesn’t work with my application.
I suspect the following thing to be my problems:
I don’t understand well enough how Python works on Ubuntu, and you can in fact change PYTHONHOME.
How to properly initialize the OpenTAP engine from a custom .NET/Avalonia application so it respects the Python configuration.
How to properly initialize the OpenTAP engine from a custom .NET/Avalonia application so it uses the engine already on the PC not the engine made by the SDK.
Could I get any help, or pointers to solve this problem?