Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion Python_Engine/Compute/BasePythonEnvironment.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,19 @@ public static partial class Compute
{
[Description("Retrieve or reinstall the base Python Environment for BHoM workflows.")]
[Input("reload", "Reload the base Python environment rather than recreating it, if it already exists.")]
[Input("run", "Start the installation/retrieval of the BHoM Base Python Environment.")]
[Output("env", "The base Python Environment for all BHoM workflows.")]
[PreviousVersion("7.0", "BH.Engine.Python.Compute.BasePythonEnvironment(System.Boolean)")]
public static PythonEnvironment BasePythonEnvironment(
bool reload = true
bool reload = true,
bool run = false
)
{
if (!run)
{
return null;
}

if (!Directory.Exists(Query.DirectoryEnvironments()))
{
// create PythonEnvironments directory if it doesnt already exist
Expand Down