missed docstring*

This commit is contained in:
Darius Houle
2025-01-26 23:46:19 -07:00
parent 52859d19c4
commit 082b13112d
2 changed files with 13 additions and 11 deletions
+4 -4
View File
@@ -582,8 +582,8 @@
raises an exception if the remote thread raised one</p>
<div class="admonition note">
<p class="admonition-title">Note</p>
<p>This method is incompatible with Microsoft Store builds of python, as the interpreter DLLs do not grant execute to Users,
see workaround: <a class="reference external" href="https://github.com/hakril/PythonForWindows/tree/master/samples/process/msstore_interpreter_remote_python.py">https://github.com/hakril/PythonForWindows/tree/master/samples/process/msstore_interpreter_remote_python.py</a></p>
<p>This method is incompatible with Microsoft Store builds of python, as the interpreter DLLs do not grant execute to Users.
See workaround: <a class="reference external" href="https://github.com/hakril/PythonForWindows/tree/master/samples/process/msstore_interpreter_remote_python.py">https://github.com/hakril/PythonForWindows/tree/master/samples/process/msstore_interpreter_remote_python.py</a></p>
</div>
</dd></dl>
@@ -603,8 +603,8 @@ see workaround: <a class="reference external" href="https://github.com/hakril/P
</dl>
<div class="admonition note">
<p class="admonition-title">Note</p>
<p>This method is incompatible with Microsoft Store builds of python, as the interpreter DLLs do not grant execute to Users,
see workaround: <a class="reference external" href="https://github.com/hakril/PythonForWindows/tree/master/samples/process/msstore_interpreter_remote_python.py">https://github.com/hakril/PythonForWindows/tree/master/samples/process/msstore_interpreter_remote_python.py</a></p>
<p>This method is incompatible with Microsoft Store builds of python, as the interpreter DLLs do not grant execute to Users.
See workaround: <a class="reference external" href="https://github.com/hakril/PythonForWindows/tree/master/samples/process/msstore_interpreter_remote_python.py">https://github.com/hakril/PythonForWindows/tree/master/samples/process/msstore_interpreter_remote_python.py</a></p>
</div>
</dd></dl>
+9 -7
View File
@@ -1129,21 +1129,23 @@ class WinProcess(Process):
def execute_python(self, pycode):
"""Execute Python code in the remote process.
This method is incompatible with Microsoft Store builds of python, as the interpreter DLLs do not grant execute to Users/*.
See: samples/process/msstore_interpreter_remote_python.py for a workaround.
This function waits for the remote process to end and
raises an exception if the remote thread raised one
"""
.. note::
This method is incompatible with Microsoft Store builds of python, as the interpreter DLLs do not grant execute to Users.
See workaround: https://github.com/hakril/PythonForWindows/tree/master/samples/process/msstore_interpreter_remote_python.py
"""
return injection.safe_execute_python(self, pycode)
def execute_python_unsafe(self, pycode):
"""Execute Python code in the remote process.
This method is incompatible with Microsoft Store builds of python, as the interpreter DLLs do not grant execute to Users/*.
See: samples/process/msstore_interpreter_remote_python.py for a workaround.
:rtype: :rtype: :class:`WinThread` or :class:`DeadThread` : The thread executing the python code
.. note::
This method is incompatible with Microsoft Store builds of python, as the interpreter DLLs do not grant execute to Users.
See workaround: https://github.com/hakril/PythonForWindows/tree/master/samples/process/msstore_interpreter_remote_python.py
"""
return injection.execute_python_code(self, pycode)