VimbaPython
VimbaPython copied to clipboard
Update Install.sh to detect and handle Conda env
Check for virtual env as previously, if no virtual env add a check to see if we have an active conda env. If there is no virtual env but we have a conda env, treat the conda env like a virtual env.
Tested using conda 4.12.0 on Ubuntu 20.04.4 LTS
I have proposed this change to assist other developers that use a conda virtual environment (comes with Anaconda or Miniconda). Without this change the Install.sh does not detect a conda environment and will instead ask the user to run Install.sh as root. With this change, an active conda env is detected and treated the same as for a virtual env, which produces the desired result.
Thank you very much for your suggestion! I will see when I can schedule some time to look into this and test the changes.