Skip to content

Commit da1a394

Browse files
committed
Up
1 parent 70864b0 commit da1a394

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

c_src/pythonx/pythonx.cpp

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)