Skip to content

Commit 6f39dda

Browse files
committed
fix DYN_DISABLE_PYNET_EMBEDDED condition
1 parent a8ce9df commit 6f39dda

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

DSPythonNet3/DSPythonNet3Evaluator.cs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -333,11 +333,10 @@ 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))
336+
var disableEmbedded = !string.IsNullOrEmpty(Environment.GetEnvironmentVariable("DYN_DISABLE_PYNET_EMBEDDED"));
337+
if (disableEmbedded)
339338
{
340-
Python.Included.PythonEnv.DeployEmbeddedPython = true;
339+
Python.Included.PythonEnv.DeployEmbeddedPython = false;
341340
}
342341

343342
Python.Included.Installer.SetupPython().Wait();

0 commit comments

Comments
 (0)