Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Renamed file and added needed attributes #109

Merged
merged 2 commits into from
Aug 29, 2023
Merged
Show file tree
Hide file tree
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
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 the 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