Skip to content

Commit

Permalink
renamed file and added needed attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom-Kingstone authored and Fraser Greenroyd committed Aug 29, 2023
1 parent 1c3ee77 commit ffae28a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
6 changes: 3 additions & 3 deletions Python_Engine/Python_Engine.csproj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
Expand Down Expand Up @@ -92,7 +92,7 @@
<Compile Include="Query\VirtualEnvPythonExePath.cs" />
<Compile Include="Query\VirtualEnvDirectory.cs" />
<Compile Include="Query\VirtualEnvironment.cs" />
<Compile Include="Query\PythonVersion.cs" />
<Compile Include="Query\Version.cs" />
<Compile Include="Query\Directory.cs" />
<Compile Include="Query\IsValidEnvironmentName.cs" />
<Compile Include="Query\EmbeddableURL.cs" />
Expand Down Expand Up @@ -139,4 +139,4 @@
del output.log
</PreBuildEvent>
</PropertyGroup>
</Project>
</Project>
2 changes: 1 addition & 1 deletion Python_Engine/Query/ToString.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public static partial class Query
// TODO - REMOVE THIS METHOD, NO LONGER REQUIRED
[Description("The string representation of a BHoM PythonEnvironment object.")]
[Input("env", "A BHoM PythonEnvironment object.")]
[Output("The string representation of the input BHoM PythonEnvironment object")]
[Output("The string representation of the input BHoM PythonEnvironment object.")]
public static string ToString(this oM.Python.PythonEnvironment env)
{
return $"{env.GetType().Name}[{env.Name}]";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ namespace BH.Engine.Python
{
public static partial class Query
{
[Description("Gets the Python version for a requested Python executable.")]
[Input("pythonExecutable", "Path to python.exe.")]
[Output("version", "Python version of the requested Python executable.")]
public static PythonVersion Version(string pythonExecutable)
{
Process process = new Process()
Expand Down

0 comments on commit ffae28a

Please sign in to comment.