I am using Python 3.8.5, on Mac. Need to find location of the docker executable. The following code
DOCKER_PATH = shutil.which('docker')
return empty result on my Mac when I run it from Eclipse. If I open terminal, I do have docker installed
which docker
/usr/local/bin/docker
Also this work fine
python
Python 3.8.5 (default, Oct 22 2020, 19:13:38)
[Clang 11.0.3 (clang-1103.0.32.59)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import shutil
>>> shutil.which('docker')
'/usr/local/bin/docker'
>>>
Any ideas, what is wrong?
Thanks