earthbound19 / _ebDev

Various tools, mostly custom-made for art development.
2 stars 2 forks source link

replace `which` with `whereis` for Windows in all scripts? #40

Closed earthbound19 closed 3 years ago

earthbound19 commented 4 years ago

which maddeningly fails in Cygwin half the time, inexplicably. whereis prints extra info I don't want.

where, built in to windows, returns the path to any .exe or script in the %PATH%, reliably, it seems.

But this means checking if it's Windows or not ($OS env. variable), which is more cumbersome.

I would really like to fix Cygwin which not working (know why), when it fails :(

earthbound19 commented 3 years ago

Long since done (or made possible in any places I didn't update it to this functionality), via getFullPathToFile.sh. Attempt for Python in progress via getFullPathToFile.py (moved outside of or never in repo)