Skip to content
Merged
Prev Previous commit
Next Next commit
Small compile fixes.
  • Loading branch information
dse committed Sep 7, 2017
commit f4a66087435c14d0fbea7a7498e6e6f9baf3f5b3
4 changes: 2 additions & 2 deletions src/embed_tests/TestPythonEngineProperties.cs
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ public void SetProgramName()
[Test]
public void SetPythonPath()
{
if (Runtime.Runtime._pyversion == "2.7")
if (Runtime.Runtime.pyversion == "2.7")
{
// Assert.Skip outputs as a warning (ie. pending to fix)
Assert.Pass();
Expand All @@ -166,7 +166,7 @@ public void SetPythonPath()
[Test]
public void SetPythonPathExceptionOn27()
{
if (Runtime.Runtime._pyversion != "2.7")
if (Runtime.Runtime.pyversion != "2.7")
{
Assert.Pass();
}
Expand Down
4 changes: 2 additions & 2 deletions src/runtime/runtime.cs
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,8 @@ public class Runtime
// We needs to replace all public constants to static readonly fields to allow
// binary substitution of different Python.Runtime.dll builds in a target application.

public string pyversion => _pyversion;
public string pyver => _pyver;
public static string pyversion => _pyversion;
public static string pyver => _pyver;

#if PYTHON27
internal const string _pyversion = "2.7";
Expand Down