File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -35,11 +35,19 @@ public static partial class Compute
35
35
{
36
36
[ Description ( "Retrieve or reinstall the base Python Environment for BHoM workflows." ) ]
37
37
[ Input ( "reload" , "Reload the base Python environment rather than recreating it, if it already exists." ) ]
38
+ [ Input ( "run" , "Start the installation/retrieval of the BHoM Base Python Environment." ) ]
38
39
[ Output ( "env" , "The base Python Environment for all BHoM workflows." ) ]
40
+ [ PreviousVersion ( "7.0" , "BH.Engine.Python.Compute.BasePythonEnvironment(System.Boolean)" ) ]
39
41
public static PythonEnvironment BasePythonEnvironment (
40
- bool reload = true
42
+ bool reload = true ,
43
+ bool run = false
41
44
)
42
45
{
46
+ if ( ! run )
47
+ {
48
+ return null ;
49
+ }
50
+
43
51
if ( ! Directory . Exists ( Query . DirectoryEnvironments ( ) ) )
44
52
{
45
53
// create PythonEnvironments directory if it doesnt already exist
You can’t perform that action at this time.
0 commit comments