Skip to content

Commit

Permalink
Merge pull request #9 from cesare-montresor/ScriptEngine
Browse files Browse the repository at this point in the history
Script engine
  • Loading branch information
cesare-montresor authored Dec 29, 2023
2 parents 42cb7a2 + 1239bc2 commit fe2faea
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Razor/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 2 additions & 4 deletions Razor/RazorEnhanced/PythonEngine.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public class PythonEngine

public Dictionary<string, object> Modules;

public static ScriptRuntime Runtime;
public ScriptRuntime Runtime;
public ScriptEngine Engine { get; }
public ScriptScope Scope { get; set; }
public String Text { get; set; }
Expand All @@ -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
Expand Down

0 comments on commit fe2faea

Please sign in to comment.