diff --git a/internal/backends/python/python.go b/internal/backends/python/python.go index 8f1fd703..f0dca110 100644 --- a/internal/backends/python/python.go +++ b/internal/backends/python/python.go @@ -283,6 +283,13 @@ func makePythonPoetryBackend(python string) api.LanguageBackend { return venv } + // Terminate early if we're running inside a repl. + // This will suppress the following poetry commands + // from showing up in the Packager pane. + if os.Getenv("REPL_HOME") != "" { + return "" + } + outputB, err := util.GetCmdOutputFallible([]string{ "poetry", "env", "list", "--full-path", })