File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 1717// set to Python.Runtime's public key token. (sn -T Python.Runtin.dll)
1818#define USE_PYTHON_RUNTIME_PUBLIC_KEY_TOKEN
1919
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
2121// calls are made to indicate what's going on during the load...
2222//============================================================================
2323using System ;
@@ -37,7 +37,7 @@ public static IntPtr PyInit_clr()
3737 public static void initclr ( )
3838#endif
3939 {
40- #if DEBUG_PRINT
40+ #if DEBUG
4141 Console . WriteLine ( "Attempting to load Python.Runtime using standard binding rules... " ) ;
4242#endif
4343#if USE_PYTHON_RUNTIME_PUBLIC_KEY_TOKEN
@@ -65,7 +65,7 @@ public static void initclr()
6565 try
6666 {
6767 pythonRuntime = Assembly . Load ( pythonRuntimeName ) ;
68- #if DEBUG_PRINT
68+ #if DEBUG
6969 Console . WriteLine ( "Success!" ) ;
7070#endif
7171 }
@@ -89,14 +89,14 @@ public static void initclr()
8989 throw new InvalidOperationException ( executingAssembly . Location ) ;
9090 }
9191 string pythonRuntimeDllPath = Path . Combine ( assemblyDirectory , "Python.Runtime.dll" ) ;
92- #if DEBUG_PRINT
92+ #if DEBUG
9393 Console . WriteLine ( "Attempting to load Python.Runtime from: '{0}'..." , pythonRuntimeDllPath ) ;
9494#endif
9595 pythonRuntime = Assembly . LoadFrom ( pythonRuntimeDllPath ) ;
9696 }
9797 catch ( InvalidOperationException )
9898 {
99- #if DEBUG_PRINT
99+ #if DEBUG
100100 Console . WriteLine ( "Could not load Python.Runtime" ) ;
101101#endif
102102#if PYTHON3
You can’t perform that action at this time.
0 commit comments