Closed matthewdeanmartin closed 3 years ago
It is definitely possible, I just didn't feel the need to implement it. I don't want to use psutil either since I want to keep the package Python-only. Feel free to send in a PR if the criteria are met.
This PR addresses this issue. The macos detect fails in the GH action, but has been failing for months.
I don't know anything about the nt.py code, so I left most of there & redirected the function to windows.py. Feel free to replace nt.py with windows.py.
Released as 1.4.0.
For example, psutil seems to have no problem finding the parent shell.
I'm hoping that shellingham's window support can be extended because what I really would like is for poetry to work on windows via (git-bash, cygwin, mingw) See bug filed over there. In poetry's case, if they'd just use shell=True when launching the subprocess, the shell detection wouldn't matter.
But if shellingham could return the actual path of the shell instead of just it's name, maybe poetry would just start working.
results
And then bash is launched from powershell via
& "C:\Program Files\Git\usr\bin\bash.exe" --login