glyph / python-docstring-mode

Emacs minor-mode for editing Python docstrings.
MIT License
70 stars 22 forks source link

Add Microsoft Windows support #35

Closed zyxir closed 11 months ago

zyxir commented 1 year ago

By default this package does not work on Windows. It doesn't fill the docstring, instead it destroys the docstring, because there are no python3 executable on Windows.

My simple fix is: use py -3 instead of python3 on Windows, which is the correct way as introduced in the official documentation.

Moreover, if the user have no Python installed, python-docstring-fill destroys the docstring, too. This is very rare as the user is already editing some Python files.

glyph commented 11 months ago

Thanks!