ashald / EnvFile

EnvFile 3.x is a plugin for JetBrains IDEs that allows you to set environment variables for your run configurations from one or multiple files.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

On multi-project windows, relative paths always point to first project

ElSaico opened this issue · comments

Something that's bitten me when I first tried to use this plugin: regardless of the project set on the run configuration, path resolution goes straight to the topmost project.

Steps to reproduce:

  1. Open a project
  2. Open another project, choosing "Attach" on the following popup (so that both end up in the same window)
  3. Create .env files on both projects with different values, on the same (relative) location
  4. Create a run configuration for the second project
  5. Enable EnvFile on this configuration and add the aforementioned .env file
  6. Run; the environment values from the first project's file will be used

This happens on PyCharm Professional 2022.2.3; don't know about other IDEs.