Skip to content

Commit ff1d19b

Browse files
committed
added bool run with default false to BasePythonEnvironment
1 parent 49ed469 commit ff1d19b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Python_Engine/Compute/BasePythonEnvironment.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,15 @@ public static partial class Compute
3737
[Input("reload", "Reload the base Python environment rather than recreating it, if it already exists.")]
3838
[Output("env", "The base Python Environment for all BHoM workflows.")]
3939
public static PythonEnvironment BasePythonEnvironment(
40+
bool run = false,
4041
bool reload = true
4142
)
4243
{
44+
if (!run)
45+
{
46+
return null;
47+
}
48+
4349
if (!Directory.Exists(Query.DirectoryEnvironments()))
4450
{
4551
// create PythonEnvironments directory if it doesnt already exist

0 commit comments

Comments
 (0)