File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 17
17
// set to Python.Runtime's public key token. (sn -T Python.Runtin.dll)
18
18
#define USE_PYTHON_RUNTIME_PUBLIC_KEY_TOKEN
19
19
20
- // If DEBUG_PRINT is defined in the Build Properties, a few Console.WriteLine
20
+ // If DEBUG is defined in the Build Properties, a few Console.WriteLine
21
21
// calls are made to indicate what's going on during the load...
22
22
//============================================================================
23
23
using System ;
@@ -37,7 +37,7 @@ public static IntPtr PyInit_clr()
37
37
public static void initclr ( )
38
38
#endif
39
39
{
40
- #if DEBUG_PRINT
40
+ #if DEBUG
41
41
Console . WriteLine ( "Attempting to load Python.Runtime using standard binding rules... " ) ;
42
42
#endif
43
43
#if USE_PYTHON_RUNTIME_PUBLIC_KEY_TOKEN
@@ -65,7 +65,7 @@ public static void initclr()
65
65
try
66
66
{
67
67
pythonRuntime = Assembly . Load ( pythonRuntimeName ) ;
68
- #if DEBUG_PRINT
68
+ #if DEBUG
69
69
Console . WriteLine ( "Success!" ) ;
70
70
#endif
71
71
}
@@ -89,14 +89,14 @@ public static void initclr()
89
89
throw new InvalidOperationException ( executingAssembly . Location ) ;
90
90
}
91
91
string pythonRuntimeDllPath = Path . Combine ( assemblyDirectory , "Python.Runtime.dll" ) ;
92
- #if DEBUG_PRINT
92
+ #if DEBUG
93
93
Console . WriteLine ( "Attempting to load Python.Runtime from: '{0}'..." , pythonRuntimeDllPath ) ;
94
94
#endif
95
95
pythonRuntime = Assembly . LoadFrom ( pythonRuntimeDllPath ) ;
96
96
}
97
97
catch ( InvalidOperationException )
98
98
{
99
- #if DEBUG_PRINT
99
+ #if DEBUG
100
100
Console . WriteLine ( "Could not load Python.Runtime" ) ;
101
101
#endif
102
102
#if PYTHON3
You can’t perform that action at this time.
0 commit comments