@@ -264,7 +264,6 @@ fine::Ok<> init(ErlNifEnv *env, std::string python_dl_path,
264264 //
265265 // [1]: https://docs.python.org/3/using/cmdline.html#envvar-PYTHONHOME
266266 // Py_SetPythonHome(python_home_path_w.c_str());
267-
268267 Py_SetProgramName (python_executable_path_w.c_str ());
269268
270269 Py_InitializeEx (0 );
@@ -300,14 +299,14 @@ fine::Ok<> init(ErlNifEnv *env, std::string python_dl_path,
300299 raise_if_failed (env, py_sys_path);
301300 auto py_sys_path_guard = PyDecRefGuard (py_sys_path);
302301
303- for (const auto &path : sys_paths) {
304- auto py_path = PyUnicode_FromStringAndSize (
305- reinterpret_cast <const char *>(path.data ), path.size );
306- raise_if_failed (env, py_path);
307- auto py_path_guard = PyDecRefGuard (py_path);
302+ // for (const auto &path : sys_paths) {
303+ // auto py_path = PyUnicode_FromStringAndSize(
304+ // reinterpret_cast<const char *>(path.data), path.size);
305+ // raise_if_failed(env, py_path);
306+ // auto py_path_guard = PyDecRefGuard(py_path);
308307
309- raise_if_failed (env, PyList_Append (py_sys_path, py_path));
310- }
308+ // raise_if_failed(env, PyList_Append(py_sys_path, py_path));
309+ // }
311310
312311 // Define global stdout and stdin overrides
313312
0 commit comments