You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Recent versions of packaged (https://github.com/emacsmirror/python-mode) python-mode seem to require a py-install-directory variable set and provide default-directory as a fallback if the var is not set. We should likely add in something like this before the (require 'python-mode) in starter-kit-python.org to properly set this variable to the installed package version:
(setq py-install-directory
(car (directory-files package-user-dir t "python-mode-.*")) )
This is probably a relatively fragile gist: it pulls the first item out of the (not reliably sorted) list of file/dirs that match the pattern out of the package directory. It might be useful to have a "get directory for loaded package" function or something to properly get the place that a loaded package ends up at here.
I'm using this setq in my starter-kit-python.el, and it seems to work just fine.
The text was updated successfully, but these errors were encountered:
Recent versions of packaged (https://github.com/emacsmirror/python-mode) python-mode seem to require a
py-install-directory
variable set and providedefault-directory
as a fallback if the var is not set. We should likely add in something like this before the (require 'python-mode) instarter-kit-python.org
to properly set this variable to the installed package version:This is probably a relatively fragile gist: it pulls the first item out of the (not reliably sorted) list of file/dirs that match the pattern out of the package directory. It might be useful to have a "get directory for loaded package" function or something to properly get the place that a loaded package ends up at here.
I'm using this setq in my
starter-kit-python.el
, and it seems to work just fine.The text was updated successfully, but these errors were encountered: