From a78b9607a75fe49619409d883f669ddaab2a2848 Mon Sep 17 00:00:00 2001 From: Thomas Edward Kingstone Date: Tue, 29 Aug 2023 10:31:47 +0100 Subject: [PATCH 1/2] renamed file and added needed attributes --- Python_Engine/Python_Engine.csproj | 6 +++--- Python_Engine/Query/ToString.cs | 2 +- Python_Engine/Query/{PythonVersion.cs => Version.cs} | 3 +++ 3 files changed, 7 insertions(+), 4 deletions(-) rename Python_Engine/Query/{PythonVersion.cs => Version.cs} (90%) diff --git a/Python_Engine/Python_Engine.csproj b/Python_Engine/Python_Engine.csproj index f6f50be..68d6185 100644 --- a/Python_Engine/Python_Engine.csproj +++ b/Python_Engine/Python_Engine.csproj @@ -1,4 +1,4 @@ - + @@ -92,7 +92,7 @@ - + @@ -139,4 +139,4 @@ del output.log - + \ No newline at end of file diff --git a/Python_Engine/Query/ToString.cs b/Python_Engine/Query/ToString.cs index c4149ed..991a0f5 100644 --- a/Python_Engine/Query/ToString.cs +++ b/Python_Engine/Query/ToString.cs @@ -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}]"; diff --git a/Python_Engine/Query/PythonVersion.cs b/Python_Engine/Query/Version.cs similarity index 90% rename from Python_Engine/Query/PythonVersion.cs rename to Python_Engine/Query/Version.cs index dbfdfd0..1d6a21b 100644 --- a/Python_Engine/Query/PythonVersion.cs +++ b/Python_Engine/Query/Version.cs @@ -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() From ae09af13652ad133c23b29deff01d4051f4f5d2f Mon Sep 17 00:00:00 2001 From: Thomas Edward Kingstone Date: Tue, 29 Aug 2023 11:06:37 +0100 Subject: [PATCH 2/2] Update Python_Engine/Query/Version.cs Co-authored-by: Fraser Greenroyd --- Python_Engine/Query/Version.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Python_Engine/Query/Version.cs b/Python_Engine/Query/Version.cs index 1d6a21b..3267497 100644 --- a/Python_Engine/Query/Version.cs +++ b/Python_Engine/Query/Version.cs @@ -31,7 +31,7 @@ namespace BH.Engine.Python { public static partial class Query { - [Description("Gets the Python version for a requested Python executable.")] + [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)