I have a workspace with two python libraries that are developed using Hatch. My workspace looks like below,
workspace_root
|__ lib1
|__ lib2
I want to set the python interpreter on startup of the VSCode without selecting it manually. Hatch provides a way to get the python interpreter location by running hatch env find from the library directory.
Is there a way to define a startup task that does the following?
for folder in workspace:
cd folder
hatch env find >> folder.settings.python.path