Commit 149de022 authored by Michael Droettboom's avatar Michael Droettboom

LINT

parent b42ca205
...@@ -45,8 +45,9 @@ main(int argc, char** argv) ...@@ -45,8 +45,9 @@ main(int argc, char** argv)
Py_InitializeEx(0); Py_InitializeEx(0);
// This doesn't seem to work anymore, but I'm keeping it for good measure anyway // This doesn't seem to work anymore, but I'm keeping it for good measure
// The effective way to turn this off is below: setting sys.done_write_bytecode = True // anyway The effective way to turn this off is below: setting
// sys.done_write_bytecode = True
setenv("PYTHONDONTWRITEBYTECODE", "1", 0); setenv("PYTHONDONTWRITEBYTECODE", "1", 0);
PyObject* sys = PyImport_ImportModule("sys"); PyObject* sys = PyImport_ImportModule("sys");
...@@ -57,9 +58,9 @@ main(int argc, char** argv) ...@@ -57,9 +58,9 @@ main(int argc, char** argv)
return 1; return 1;
} }
// By disabling the cache_tag, Python won't look for cached bytecode files when // By disabling the cache_tag, Python won't look for cached bytecode files
// importing modules, which saves on filesystem I/O time // when importing modules, which saves on filesystem I/O time
PyObject *implementation = PyObject_GetAttrString(sys, "implementation"); PyObject* implementation = PyObject_GetAttrString(sys, "implementation");
if (implementation == NULL) { if (implementation == NULL) {
return 1; return 1;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment