-
Notifications
You must be signed in to change notification settings - Fork 300
Description
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.