Skip to content

Commit f4a6608

Browse files
author
dse
committed
Small compile fixes.
1 parent 966f035 commit f4a6608

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/embed_tests/TestPythonEngineProperties.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ public void SetProgramName()
146146
[Test]
147147
public void SetPythonPath()
148148
{
149-
if (Runtime.Runtime._pyversion == "2.7")
149+
if (Runtime.Runtime.pyversion == "2.7")
150150
{
151151
// Assert.Skip outputs as a warning (ie. pending to fix)
152152
Assert.Pass();
@@ -166,7 +166,7 @@ public void SetPythonPath()
166166
[Test]
167167
public void SetPythonPathExceptionOn27()
168168
{
169-
if (Runtime.Runtime._pyversion != "2.7")
169+
if (Runtime.Runtime.pyversion != "2.7")
170170
{
171171
Assert.Pass();
172172
}

src/runtime/runtime.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,8 @@ public class Runtime
110110
// We needs to replace all public constants to static readonly fields to allow
111111
// binary substitution of different Python.Runtime.dll builds in a target application.
112112

113-
public string pyversion => _pyversion;
114-
public string pyver => _pyver;
113+
public static string pyversion => _pyversion;
114+
public static string pyver => _pyver;
115115

116116
#if PYTHON27
117117
internal const string _pyversion = "2.7";

0 commit comments

Comments
 (0)