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
3535 {
3636 [ Description ( "Retrieve or reinstall the base Python Environment for BHoM workflows." ) ]
3737 [ 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." ) ]
3839 [ Output ( "env" , "The base Python Environment for all BHoM workflows." ) ]
40+ [ PreviousVersion ( "7.0" , "BH.Engine.Python.Compute.BasePythonEnvironment(System.Boolean)" ) ]
3941 public static PythonEnvironment BasePythonEnvironment (
40- bool reload = true
42+ bool reload = true ,
43+ bool run = false
4144 )
4245 {
46+ if ( ! run )
47+ {
48+ return null ;
49+ }
50+
4351 if ( ! Directory . Exists ( Query . DirectoryEnvironments ( ) ) )
4452 {
4553 // create PythonEnvironments directory if it doesnt already exist
You can’t perform that action at this time.
0 commit comments