Is there any chance that this could be distributed via PyPI and then made available as a lightweight Python API which would allow another library to import and test for Windows and "WSL2" enabled mode. If WSL2 is not installed we could output instructions etc but if it was installed it could simply switch over to using the python3 inside Ubuntu and go from there. That way CLI tools and python code which relies on Linux could work almost transparently on Windows with minimal changes?
Is there any chance that this could be distributed via PyPI and then made available as a lightweight Python API which would allow another library to import and test for Windows and "WSL2" enabled mode. If WSL2 is not installed we could output instructions etc but if it was installed it could simply switch over to using the python3 inside Ubuntu and go from there. That way CLI tools and python code which relies on Linux could work almost transparently on Windows with minimal changes?