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 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