glyph / python-docstring-mode

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

failed to locate formatting script #23

Closed warner closed 7 years ago

warner commented 7 years ago

The first time I installed this (via melpa), the mode wasn't able to find the embedded docstring_wrap.py file. Using M-q to reformat docstrings cause the whole comment to be replaced by a "couldn't find file" error string.

I wound up setting it manually with the (built-in, thank you!) python-docstring-script variable, but it looks like it's supposed to be able to find it on its own. I'll try to debug this at some point and submit a patch.. just filing the issue now in case I forget.

glyph commented 7 years ago

Thanks for the report.

warner commented 7 years ago

Nevermind, I had a leftover symlink-based install still present, so load-file-name was pointing into the wrong directory. The code that sets python-docstring-script is working as intended. PEBCAK.