Run config, allow overriding python interpreter

Answered

I would like to be able to define exactly which interpreter I want to use for a specific run configuration. 

I.e

{
    "configurations": [
        {
            "type": "fastapi",
            "name": "Fastapi configuration",
            "module": "app.main",
            "application": "api",
            "workingDir": "backend/app",
"interpreter": "..."
         
        }
    ]
}

Our project is of a nested structure (and I can't edit it) that contains the folders:

|-project
|---backend
|------pyproject.toml
|------...
|---frontend
|------...

I want to use the interpreter that is defines in the pyproject.toml file, but because I have the run configuration in the top-level folder (project) it defaults to a system interpreter that doesn't have the required packages

0
1 comment

Thank you for your feedback. It is not possible currently. Please vote for this request in our tracker: FL-20621 Ability to specify Python interpreter per run configuration

0

Please sign in to leave a comment.