Skip to content

Commit 6a2917a

Browse files
jamesramsden-bhFraser Greenroyd
authored andcommitted
Minor attribute wording change.
1 parent 1f9c172 commit 6a2917a

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Python_Engine/Create/VirtualEnvironment.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public static partial class Create
3232
{
3333
[Description("Creates a PythonEnvironment object from a virtual environment name. This method does not install the underlying environment. An error will be returned if no environment is found.")]
3434
[Input("envName","The virtual environment name.")]
35-
[Output("The location where a Python virtual environment would reside.")]
35+
[Output("The location where a Python virtual environment would reside. Null will be returned if the underlying environment does not exist.")]
3636
public static PythonEnvironment VirtualEnvironment(string envName)
3737
{
3838
string exePath = Query.VirtualEnvPythonExePath(envName);
@@ -42,8 +42,7 @@ public static PythonEnvironment VirtualEnvironment(string envName)
4242
}
4343
else
4444
{
45-
BH.Engine.Base.Compute.RecordError(
46-
$"No environment could be found for {envName}. Use the appropriate InstallPythonEnvironment to install this environment.");
45+
BH.Engine.Base.Compute.RecordError($"No environment could be found for {envName}. Use the appropriate InstallPythonEnv to install this environment.");
4746
return null;
4847
}
4948
}

0 commit comments

Comments
 (0)