From e1d1b928117d17bba274f4c7923523101bdf1321 Mon Sep 17 00:00:00 2001 From: Cesare Montresor Date: Fri, 29 Dec 2023 21:07:52 +0100 Subject: [PATCH 1/2] - set runtime non static, issues with editor output --- Razor/RazorEnhanced/PythonEngine.cs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Razor/RazorEnhanced/PythonEngine.cs b/Razor/RazorEnhanced/PythonEngine.cs index 1a28e0e9..67525440 100644 --- a/Razor/RazorEnhanced/PythonEngine.cs +++ b/Razor/RazorEnhanced/PythonEngine.cs @@ -20,7 +20,7 @@ public class PythonEngine public Dictionary Modules; - public static ScriptRuntime Runtime; + public ScriptRuntime Runtime; public ScriptEngine Engine { get; } public ScriptScope Scope { get; set; } public String Text { get; set; } @@ -32,9 +32,7 @@ public class PythonEngine public PythonEngine() { - if (Runtime == null) { - Runtime = IronPython.Hosting.Python.CreateRuntime(); - } + Runtime = IronPython.Hosting.Python.CreateRuntime(); Engine = IronPython.Hosting.Python.GetEngine(Runtime); //Paths for IronPython 3.4 From 1239bc22de88f3da2d00d35881227aa9d5792b38 Mon Sep 17 00:00:00 2001 From: Cesare Montresor Date: Fri, 29 Dec 2023 21:08:34 +0100 Subject: [PATCH 2/2] - version bump --- Razor/Properties/AssemblyInfo.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Razor/Properties/AssemblyInfo.cs b/Razor/Properties/AssemblyInfo.cs index da99dd4c..f6dec3c3 100644 --- a/Razor/Properties/AssemblyInfo.cs +++ b/Razor/Properties/AssemblyInfo.cs @@ -26,7 +26,7 @@ // You can specify all the values or you can default the Revision and Build Numbers // by using the '*' as shown below: -[assembly: AssemblyVersion("0.8.2.102")] +[assembly: AssemblyVersion("0.8.2.103")] // // In order to sign your assembly you must specify a key to use. Refer to the