From 9dd24ceb8f12f51cedf3073ec876f52b9db867a2 Mon Sep 17 00:00:00 2001
From: Ben Boeckel <ben.boeckel@kitware.com>
Date: Mon, 3 Jan 2022 15:03:33 -0500
Subject: [PATCH] pvpython: remove explicit interpreter initialization

The `PyMain` method will initialize the interpreter on its own. With
Python 3.10, the arguments must be passed during initialization as other
setup is reset when they are finally provided.
---
 Clients/CommandLineExecutables/pvpython.h | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/Clients/CommandLineExecutables/pvpython.h b/Clients/CommandLineExecutables/pvpython.h
index 63b38ed38f6..7a67b5309cb 100644
--- a/Clients/CommandLineExecutables/pvpython.h
+++ b/Clients/CommandLineExecutables/pvpython.h
@@ -129,9 +129,6 @@ inline int Run(int processType, int argc, char* argv[])
         ? vtkLogger::VERBOSITY_INFO
         : vtkLogger::VERBOSITY_TRACE);
 
-    // Start interpretor
-    vtkPythonInterpreter::Initialize();
-
     ret_val =
       vtkPythonInterpreter::PyMain(static_cast<int>(pythonArgs.size()) - 1, &pythonArgs.front());
 
-- 
GitLab