| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -85,7 +85,9 @@ public static string PythonHome | |||
| 85 | 85 | { | |
| 86 | 86 | Marshal.FreeHGlobal(_pythonHome); | |
| 87 | 87 | } | |
| 88 | - _pythonHome = Marshal.StringToHGlobalAnsi(value); | ||
| 88 | + _pythonHome = Runtime.IsPython3 | ||
| 89 | + ? UcsMarshaler.GetInstance("").MarshalManagedToNative(value) | ||
| 90 | + : Marshal.StringToHGlobalAnsi(value); | ||
| 89 | 91 | Runtime.Py_SetPythonHome(_pythonHome); | |
| 90 | 92 | } | |
| 91 | 93 | } | |
| Back | FazBrowse Home | New Git URL |
0 commit comments