title: Path to conda environment as a variable in script
body: <p>I am using Spyder and I am working with a virtual environment created with conda create, which is located in C:/Users/username/.conda/envs/...</p>
  <p>To deal with GDAL proj.db error (proj_create_from_database: Cannot find proj.db) I need to set:<br />
  os.environ['PROJ_LIB'] = &quot;C:/Users/username/.conda/envs/test/Library/share/proj&quot;</p>
  <p>Because I am not writing the script only for me, I would like to write a line to <strong>find a path to the current conda environment</strong> and save it as 'conda_env_path' variable (in my case C:/Users/username/.conda/envs/test).</p>
  <p>All the answers I found say about finding path to environment in anaconda prompt, not as a line of a script.<br />  Thank you.</p>