opentap / OpenTap.Python

Python integration for OpenTAP
Apache License 2.0
20 stars 6 forks source link

Support for Python Virtual Environments #159

Closed witoldpiet closed 3 months ago

witoldpiet commented 4 months ago

Is it possible to extend the Python plugin with support for Python Virtual Environments?

rmadsen-ks commented 4 months ago

Windows: How to add a virtual environment: py -m venv [folder.venv]

The folder contains the following files by default:

04/30/2024  02:26 PM    <DIR>          Include
04/30/2024  02:26 PM    <DIR>          Lib
04/30/2024  02:26 PM               325 pyvenv.cfg
04/30/2024  02:27 PM    <DIR>          Scripts
               1 File(s)            325 bytes

pyvenv.cfg contains information about the environment. We should be able to detect the actual python installation based on that.

rmadsen-ks commented 3 months ago

This has been fixed in 3.2 beta