Skip to content

Commit a8ce9df

Browse files
committed
add new flag
Add a way to disable embedded python
1 parent e5fe0d0 commit a8ce9df

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

DSPythonNet3/DSPythonNet3Evaluator.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -333,6 +333,13 @@ internal static void InstallPython()
333333
Runtime.PythonDLL = Python.Included.Installer.PYTHON_VERSION + ".dll";
334334
}
335335

336+
337+
var disableEmbedded = Environment.GetEnvironmentVariable("DYN_DISABLE_PYNET_EMBEDDED");
338+
if (!string.IsNullOrEmpty(disableEmbedded))
339+
{
340+
Python.Included.PythonEnv.DeployEmbeddedPython = true;
341+
}
342+
336343
Python.Included.Installer.SetupPython().Wait();
337344
isPythonInstalled = true;
338345
}

0 commit comments

Comments
 (0)