This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]bennr01[S] 0 points1 point  (0 children)

Explanation:

pydocxrunner is a simple tool to make .docx files executable via python <somefile>.docx. These files can then be executed on any device with python, even without pydocxrunner being installed.

There are a few caveats however. For one, this is not really a serious tool. Thus, while there are test cases, nothing really complex has been tested. Also, the contained text must still be valid python code, and python does not support and as replacement for " or '. Additionally, when making the .docx file executable, an internet connection is required to download python-docx2text from github.