Skip to content

Commit 347ecd7

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

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/embed_tests/TestPythonEngineProperties.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -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)