Show More
@@ -125,6 +125,9 b' fn run() -> Result<(), i32> {' | |||||
125 | // Set program name. The backing memory needs to live for the duration of the |
|
125 | // Set program name. The backing memory needs to live for the duration of the | |
126 | // interpreter. |
|
126 | // interpreter. | |
127 | // |
|
127 | // | |
|
128 | // TODO consider storing this in a static or associating with lifetime of | |||
|
129 | // the Python interpreter. | |||
|
130 | // | |||
128 | // Yes, we use the path to the Python interpreter not argv[0] here. The |
|
131 | // Yes, we use the path to the Python interpreter not argv[0] here. The | |
129 | // reason is because Python uses the given path to find the location of |
|
132 | // reason is because Python uses the given path to find the location of | |
130 | // Python files. Apparently we could define our own ``Py_GetPath()`` |
|
133 | // Python files. Apparently we could define our own ``Py_GetPath()`` |
General Comments 0
You need to be logged in to leave comments.
Login now